API REFERENCE
maxSnapshots
Maximum data snapshots retained in memory. Older snapshots may be removed.
What does this API do?
Maximum data snapshots retained in memory. Older snapshots may be removed.
Exact input and result types
maxSnapshots: number| Item | Value |
|---|---|
| JavaScript name | maxSnapshots |
| HTML attribute | max-snapshots |
| Default | 20 |
| Input type | number |
Usage flow
Set this on a property of the Grid element. In HTML, you can also use the max-snapshots attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.
Feature explanations and examples
- Data snapshot
Snapshots retain rowData at a point in time for comparison with current data or another snapshot. They differ from view-state APIs that save column widths, filters, and focus.