Lattice Grid Buy a licence

The grid (rendering) ยท console.warn

cannot edit a row that is not rendered; scroll to it first.

Printed by The grid (rendering), prefixed [lattice], since 1.0.1.

Warnings referencecelledit.offscreen

Identifier
celledit.offscreen
Raised by
The grid (rendering)
Since
1.0.1

What happened

edit.start() named a row that is outside the rendered window, so there is no cell element to put an editor into and no editing session was started. The grid renders only the rows in view, so a key that is valid in the data may still have no element.

The fix

Scroll the row into view first and start the edit afterwards.

The smallest fix

grid.scroll.toRow(key);
requestAnimationFrame(() => grid.edit.start(key, 'name'));

Reference

Covered in full at the API reference.