Stable row identity across reloads
Requires or derives a stable row id for remote rows so that focus, selection, expansion and edits survive refetches, eviction and reordering. Without ids, the grid falls back to index identity and documents the consequences.
Planned. This page shows the specification from issue #180. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
getRowId maps to the invoice number, and maxCachedBlocks is 3.
Expected behavior
With getRowId, selections and focus follow the rows after eviction or reorder. In index fallback mode, a banner explains that the selection now points at different rows after the server reorders.
Planned API surface
option: getRowId(row)rowNode.idapi.getRowNodeById(id)dev warning: duplicateRowIdAcceptance criteria
- Selection state is keyed by row id when getRowId is provided. (pending)
- Duplicate ids within the loaded set produce a dev warning and keep the first occurrence. (pending)
- Focus is restored to the same id if that row is loaded after a refresh. Otherwise focus is restored to the same index. (pending)
- getRowNodeById returns undefined for rows that are not loaded. (pending)