Package com.smartgwt.client.widgets.grid.events

# Interface DataChangedHandler

All Superinterfaces:
  `EventHandler`

public interface DataChangedHandler extends EventHandler

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onDataChanged(DataChangedEvent event)`
  Method invoked when changes to the listGrid's data occur.

- ## Method Details

  - ### onDataChanged

    void onDataChanged(DataChangedEvent event)
    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 the `dataChangedComplete()` notification method.

    May be invoked by any of the following:

    - a call to `addData()`, `updateData()`, or `removeData()`
    - `DataSource` updates from the server for `ResultSet` data (triggered by record editing, etc.)
    - fetches arriving back from the server for `ResultSet` data
    - changes to array data if made through APIs such as Array.set(), Array.add(), etc.
    - cache invalidation
    - filtering
    Calling `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 for `ResultSet` 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, an `addData()`, `updateData()`, or `removeData()`, or a `DataSource` update for `ResultSet` data (the first three reasons listed above) but otherwise will be null.

    Parameters:
      `event` - the event