View Full Version : Multiple DataGrid itemEditEnd event when making single edit
11-15-2006, 06:45 PM
I am trying to implement a custom event handler for the itemEditEnd event for a DataGrid with a custom item renderer. For some reason multiple itemEditEnd events are being dispatched when I edit a cell in the lone editable column of my DataGrid. Any ideas why this is happening?
11-15-2006, 09:18 PM
Just a thought, are you checking the reason for the itemEditEnd event having been raised in your handler?
Here's what made me ask that: Determining the reason for an itemEditEnd event (http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000867.html)
11-16-2006, 02:16 PM
Yes, the reason for all the events is other.
11-16-2006, 03:49 PM
Ok, first off let me apologize, because I'm in the middle of changing development environments and so I'm not able to do pretty much any testing, debugging and the like at the moment. But if you take the example provided on Determining the reason for an itemEditEnd event (http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000867.html) do you see the same thing happening as you see in your code?
Now I'm guessing and I could be wrong, that since you said you have a renderer attached you're checking to see what the user typed and modifying that as needed. If that's not why you're putting in the listener then let's try and get that understood. Also, I'm just wondering, is the reason "other" when the action that you're expecting to react to happens?
From glancing about in the docs it sounds like the itemEditEnd event gets fired any time the cell loses focus.
Oh and you might want to check some of the properties of the event in your debugger.
Just throwing some ideas out.
02-04-2007, 12:39 AM
Did you ever figure out why you were getting multiple events?
I am having this problem as well.
vBulletin® v3.8.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.