Data Models guide

SSRM Selection data grid documentation

SSRM selection keeps select-all state even when only some rows are loaded.

What it means

SSRM selection stores a stable selection state object instead of treating the loaded rows as the full truth.

When to use it

Use it when select-all needs to include rows that are not loaded in memory yet. Choose controlled SSRM selection when the host needs to persist, inspect, or replay selection state.

Implementation notes

The loaded row ids in `onSelectionChanged` are only the visible subset. The durable state lives in `selection.state`. Expose the selection API when your host needs programmatic set/capture/clear controls.

Relevant API

Start with serverRowModel.selection, serverRowModel.selection.enabled, serverRowModel.selection.state, serverRowModel.selection.state.selectAll, serverRowModel.selection.state.toggledRowIds, serverRowModel.selection.state.selectAllChildren, serverRowModel.selection.state.toggledNodes, serverRowModel.selection.groupSelects. Open the live API reference for types and defaults.