Interface DataChangedHandler
- All Superinterfaces:
EventHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDataChanged
(DataChangedEvent event) Notification method fired when the TreeGrid's data changes, for any reason.
-
Method Details
-
onDataChanged
Notification method fired when the TreeGrid's data changes, for any reason.Examples of why data changed might be:
- a call to
addData()
,updateData()
, orremoveData()
-
DataSource
updates from the server forResultTree
data (triggered by record editing, etc.) - fetches arriving back from the server for
ResultTree
data -
programmatic changes to
Tree
data if made through APIs such asTree.add()
,Tree.remove()
, etc. - cache invalidation
- filtering
setData()
doesn't call this notification directly, but it may fire if one of the above listed events is triggered (e.g. a server fetch forResultTree
data).Note that the
operationType
parameter 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 aDataSource
update forResultTree
data (the first three reasons listed above) but otherwise will be null.- Parameters:
event
- the event
- a call to
-