Listening to Cell and Row Changes
Summary
- AdapTable provides 2 Events useful for managing Grid Data Changes
- Row Changed Event - fires whenever data is loaded, added, updated or removed
- Cell Changed Event - fires when the contents of a cell changes
Row Changed Event
AdapTable's Row Changed Event fires whenever Rows are loaded, added, updated or deleted in AG Grid.
Caution
- This event is only fired if the change is made via the Managing Grid Data functions in AdapTable's Grid API
- Or if a
Create,Clone,EditorDeleteAction Column Command is used
Deep Dive
Understanding the Row Changed Event
Row Changed Events
- This demo listens to the Row Changed Event and outputs a System Status Message (each with a different type)
Try It Out
- Click the
Load Initial Grid DataDashboard Button to load data and trigger a Row Change ofLoad - Click the
AddAction Column Command in any Row to add a Row and trigger a Row Change ofAdd - Click the
EditAction Column Command in any Row to update a Row and trigger a Row Change ofUpdate - Click the
DeleteAction Column Command in any Row to delete a Row and trigger a Row Change ofDelete
Cell Changed Event
The Cell Changed Event fires whenever the contents of any cell changes in AG Grid.
This can be the result of a user cell edit or of ticking data.
Deep Dive
Understanding the Cell Changed Event
Cell Changed Event
- This demo listens to the Cell Changed Event and outputs a System Status Message for the Cell's new value
- Note: We use the Grid API to select a cell in the
Github StarsColumn
Try It Out
- Apply the Smart Edit on the selected cell to update the Cell and trigger a Cell Changed Event