Interface DataChangedHandler
- All Superinterfaces:
EventHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoidonDataChanged(DataChangedEvent event) Method invoked when changes to the listGrid's data occur.
-
Method Details
-
onDataChanged
Method invoked when changes to the listGrid's data occur. This method will perform the necessary actions to ensure the changes to the data are reflected in the user interface, and then invoked thedataChangedComplete()notification method.May be invoked by any of the following:
- a call to
addData(),updateData(), orremoveData() -
DataSourceupdates from the server forResultSetdata (triggered by record editing, etc.) -
fetches arriving back from the server for
ResultSetdata - changes to array data if made through APIs such as Array.set(), Array.add(), etc.
- cache invalidation
- filtering
setData()will not call this method directly, but it may fire if one of the above listed events is triggered (e.g. a server fetch forResultSetdata).Note that the
operationTypeparameter is optional and will be passed and contain the operation (e.g. "update") if this notification was triggered by a fetch, anaddData(),updateData(), orremoveData(), or aDataSourceupdate forResultSetdata (the first three reasons listed above) but otherwise will be null.- Parameters:
event- the event
- a call to
-