I have created a handler function to capture DataGridEvent.ITEM_EDIT_END of a datagrid. In the function, the code updates an ArrayCollection, which is the dataProvider of the datagrid. However, this handler function keeps on firing. If I commented out the code that updates the ArrayCollection, the firing doesn't repeat.
Why this happens and how to prevent it?
Thank you for helping.
In the ITEM_EDIT_END handler, if you change the arraycollection you'll end up in an endless loop.
If you need to use the ArrayCollection that has been edited, its best to make a copy of it, change the data in the copy, and then use the copy of the array collection.
If this post answered your question or helped, please mark it as such.
I can't use a copy of the collection. It is the dataprofider of the datagrid.