vivoices
05-01-2009, 01:40 PM
I am looking for an event that a DataGrid dispatches ONCE when the data in its DataProvider changes.
I set up a test DataGrid that displays the row data of a "clicked item" directly from the ArrayCollection being assigned as the DataProvider.dg.addEventListener( ListEvent.ITEM_CLICK, itemClick );I spent hours looking for an event that is dispached once from either the DataGrid or the ArrayCollection to react to that change of data. NeitherdataToDisplay.addEventListener( FlexEvent.DATA_CHANGE, dataChange );nordg.addEventListener( FlexEvent.DATA_CHANGE, dataChange );are dispatching.
Events like "DataGridEvent.ITEM_EDIT_BEGIN", "DataGridEvent.ITEM_EDIT_BEGINNING" or "DataGridEvent.ITEM_EDIT_END" are unreliable with the default and my custom ItemRenderers.
Other events relate only to the display aspect of the DataGrid and not the underlying data.
Any ideas?
Thanks,
David
I set up a test DataGrid that displays the row data of a "clicked item" directly from the ArrayCollection being assigned as the DataProvider.dg.addEventListener( ListEvent.ITEM_CLICK, itemClick );I spent hours looking for an event that is dispached once from either the DataGrid or the ArrayCollection to react to that change of data. NeitherdataToDisplay.addEventListener( FlexEvent.DATA_CHANGE, dataChange );nordg.addEventListener( FlexEvent.DATA_CHANGE, dataChange );are dispatching.
Events like "DataGridEvent.ITEM_EDIT_BEGIN", "DataGridEvent.ITEM_EDIT_BEGINNING" or "DataGridEvent.ITEM_EDIT_END" are unreliable with the default and my custom ItemRenderers.
Other events relate only to the display aspect of the DataGrid and not the underlying data.
Any ideas?
Thanks,
David