The grid (core) ยท console.warn
no band "{id}" to add to; nothing was grouped.
Printed by The grid (core), prefixed [lattice], since 1.29.0.
Warnings reference › columns.group.unknown:*
- Identifier
columns.group.unknown:*- Raised by
- The grid (core)
- Since
- 1.29.0
What happened
groupColumns(ids, { groupId }) adds columns to an existing band, and no band has that id. Nothing was grouped and no band was created - the groupId option never creates one.
The fix
Use the id option to create a band with a chosen id, or pass the id of a band that exists.
The smallest fix
grid.columns.groupColumns(['q1', 'q2'], { id: 'revenue' });
Reference
Covered in full at the API reference.