WarUI

Stable Row Identity with getRowId

GRID-A03-F08P0baselinePlanned

A getRowId callback gives every row a stable, application-defined identity that is independent of array position or object reference. This is the foundation for transactions, delta updates and preserving selection, focus and expansion across data changes.

Planned. This page shows the specification from issue #179. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid using getRowId = data => data.sku, with 2 rows selected.

Expected behavior

With getRowId enabled, a refetch keeps the same rows selected and the ids unchanged. With it disabled, a refetch clears the selection because rows get new generated ids. A duplicate id raises onDuplicateRowId and a dev warning.

Planned API surface

getRowIdrowNode.idapi.getRowNodeonDuplicateRowId

Acceptance criteria

  • rowNode.id equals String(getRowId(params)) (pending)
  • getRowNode(id) returns the matching node in O(1) (pending)
  • Identity survives object replacement and reordering (pending)
  • Duplicate ids are reported, and the first occurrence wins deterministically (pending)
  • Without getRowId, ids are generated sequentially and are stable only for the lifetime of the bound array (pending)