Selection with remote data and server reloads
Preserves the selection by stable row keys when data is reloaded from a server, including server-side paging and filtering. It supports a compact 'all except' model for selecting very large remote data sets that are not fully loaded. The application can send this model to the server for bulk operations.
Planned. This page shows the specification from issue #189. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid backed by a mock server with 250k rows, server paging, a reload button and a panel showing the selection model JSON.
Expected behavior
Select-all switches to {mode:'allExcept', filter, excludedKeys:[]}. Deselecting rows adds them to excludedKeys. Reloading keeps the checkboxes consistent. With dropMissing, keys absent after the reload are removed.
Planned API surface
dataMode: 'remote'selectionModel: 'explicit' | 'allExcept'getSelectionModel()setSelectionModel(model)reconcileSelectionOnReload: 'keep' | 'dropMissing'onSelectionModelChangeAcceptance criteria
- Explicit-mode selection survives a reload when rowKey values are stable. (pending)
- Select-all over remote data never requires loading all rows. (pending)
- getSelectionModel returns a serializable object that is documented with a JSON schema. (pending)
- With dropMissing, keys that are not returned by the server after a reload are removed, and the removal is reported in an event. (pending)
- A change of filter in allExcept mode resets or converts the model according to the documented rules. (pending)