The grid (core) ยท console.warn
selection.rows() was read while every row ma...
Printed by The grid (core), prefixed [lattice], since 1.78.0.
Warnings reference › selection:predicate-partial
- Identifier
selection:predicate-partial- Raised by
- The grid (core)
- Since
- 1.78.0
What happened
grid.selection.rows() returns an array, and under a predicate selection on a pushdown source that array can only hold the rows the grid has loaded. The selection covers more rows than that (or its size has not been counted yet), so what came back is a subset. Readers of rows() inside the grid (a derived grid following the selection, a dashboard, a stat tile) see the same subset.
The fix
Read grid.selection.stream() for every selected row, and await grid.selection.count() for how many there are.
Reference
Covered in full at the API reference.