No, I am saying that you would not use an itemEndEdit handler at all,
but would do the item update in the renderer.

 

I do not know how to directly displatch that event.  You might be able
to change the focus off that cell and cause the event to dispatch.  Or
perhaps set editedItemPosition=null;

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Randy Martin
Sent: Monday, October 20, 2008 11:34 AM
To: [email protected]
Subject: [flexcoders] Re: Dispatching The itemEditEnd event from within
an item editor

 

Thanks, Tracy. And you're right. I'm only using an ItemEditor. 
There's no custom renderer. I really don't need a custom renderer 
because I'm able to pass back a combination of the two selected items 
in the itemEditEnd event handler.

Are you saying that if I used a custom renderer, I could trigger the 
itemEditEnd event when the selection from the 2nd combo box is made?

I'll look into that, but if you have a quick example, it would save 
me some time.

TIA,
~randy

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> 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: [email protected] <mailto:flexcoders%40yahoogroups.com>

[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Randy Martin
> Sent: Monday, October 20, 2008 7:39 AM
> To: [email protected] <mailto:flexcoders%40yahoogroups.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
>

 

Reply via email to