[flexcoders] Dispatching The itemEditEnd event from within an item editor

2008-10-20 Thread Randy Martin
I have a custom item editor for a cell in a DataGrid that consists of 
two ComboBoxes. Everything works perfectly, except I'd like a way to 
exit the item editor as soon as the user selects from the second combo 
box.
 
That is, I'd like the item editor to dispatch the itemEditEnd event as 
if the use had removed the focus from the column being edited.

I tried just having the 2nd combo box dispatch the event in response to 
its change event, but that didn't work.

Anyone have any suggestions?
 
TIA,
~randy 




RE: [flexcoders] Dispatching The itemEditEnd event from within an item editor

2008-10-20 Thread Tracy Spratt
It sounds like you are using renderIsEditor=true, which causes the DG
to use its own interactive event handling and item updating. 

 

For moderately complex interactive renderers, you might be better served
by having the renderer handle that work itself.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Randy Martin
Sent: Monday, October 20, 2008 7:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dispatching The itemEditEnd event from within an
item editor

 

I have a custom item editor for a cell in a DataGrid that consists of 
two ComboBoxes. Everything works perfectly, except I'd like a way to 
exit the item editor as soon as the user selects from the second combo 
box.

That is, I'd like the item editor to dispatch the itemEditEnd event as 
if the use had removed the focus from the column being edited.

I tried just having the 2nd combo box dispatch the event in response to 
its change event, but that didn't work.

Anyone have any suggestions?

TIA,
~randy