The grid (core) ยท console.warn
no rowKey configured, so rows are identified by object identity. This disables: {features}. Set rowKey to a field name, an array of field names, or a function.
Printed by The grid (core), prefixed [lattice], since 1.0.1.
Warnings reference › rowKey.missing
- Identifier
rowKey.missing- Raised by
- The grid (core)
- Since
- 1.0.1
What happened
Without a rowKey the grid identifies a row by the object it was handed, which works only as long as that exact object stays in place. Everything that has to recognise the same row across a reload, a sort or an incoming delta is switched off; the message lists them by name.
The fix
Set rowKey to the field that identifies a row, an array of fields for a composite key, or a function returning one.
The smallest fix
createGrid(el, { rowKey: 'id' });
Reference
Covered in full at the API reference.