The grid (core) · console.warn
filter condition on column "{col}" uses op "relative" with {an unknown relative date token "…"|no relative date token}; the condition is refused rather than matching every row.
Printed by The grid (core), prefixed [lattice], since 1.60.0.
Warnings reference › filter:relative:*:*
- Identifier
filter:relative:*:*- Raised by
- The grid (core)
- Since
- 1.60.0
What happened
A relative date condition carries no token, or one the grid does not know. The condition is refused - dropped from the filter set - rather than admitted as a condition that matches everything, because a filter that silently stops narrowing shows more data than the user asked to see. The message lists the tokens that are valid.
The fix
Use one of the relative tokens listed in the message.
The smallest fix
grid.filters.set({ colId: 'due', op: 'relative', value: 'last7Days' });
Reference
Covered in full at the API reference.