The grid (core) · console.warn
no config.rowKey; falling back to index identity. Row changes, streaming dedupe, selection persistence and remote reload are disabled.
Printed by The grid (core), prefixed [lattice], since 1.0.1.
Warnings reference › source.rowKey.missing
- Identifier
source.rowKey.missing- Raised by
- The grid (core)
- Since
- 1.0.1
What happened
The source needs a stable identity per row to deduplicate a stream, to match an incoming change, and to keep a selection across a reload. Without rowKey a row is identified by its position, which changes whenever the rows do, so each of those features is switched off.
The fix
Set rowKey to the field that identifies a row.
The smallest fix
createGrid(el, { rowKey: 'id', source: { mode: 'stream', … } });
Reference
Covered in full at the API reference.