Flex tries hard to make sure some component has focus and will restore focus to 
the last thing in the app that had focus.  If that is the ADG, the ADG will 
start a new edit session.  You can try to detect that situation and cancel 
ITEM_EDIT_BEGINNING or ITEM_EDIT_BEGIN.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of GeorgeB
Sent: Tuesday, October 06, 2009 6:04 AM
To: [email protected]
Subject: [flexcoders] Is it a Bug?



Hi all,

I stumbled on the following and don't know if this is a bug, and if there are 
is any fix.
Environment is Eclipse Ganymede, Flex Pro Plugin 3 (3.2 SDK)

The setup includes a MenuBar control with several submenus. Also there is a 
AdvancedDataGrid with several columns and some itemEditors used in these 
columns. Handling of the itemEditors is through a typical itemEditBegin event 
function, that handles the event. This works OK as it should.

Now let's first use any itemEditor on the ADG (and finish the operation). Then 
clicking the menuBar, it opens the popup submenu through nenuEvent:MENU_SHOW, 
as it has to. If I leave the popup open and click anywhere outside, to close 
the popup, it closes allright, but the previously used itemEditor comes 
open/selected. This is not supposed to be, but happens all the time, even if I 
click outside the ADG, anywhere. (The function that handles the itemEditBegin 
is triggered and the event.target shows the ADG with columnIndex of the 
previously used itemEditor still selected)

Any insight please?

Thanks
George

Reply via email to