Skip to content

DataChangeDetail

Detail for the data-change event.

Fired whenever the grid’s row data changes — including new data assignment, row insertion/removal, and in-place mutations via updateRow().

Use this to keep external UI in sync with the grid’s current data state (row counts, summaries, charts, etc.).

grid.on('data-change', ({ rowCount, sourceRowCount }) => {
console.log(`${rowCount} rows visible of ${sourceRowCount} total`);
});
PropertyTypeDescription
rowCountnumberNumber of visible (processed) rows
sourceRowCountnumberTotal number of source rows (before filtering/grouping)
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt