Multi-level nested grouping
Groups rows by an ordered list of columns, which produces a nested hierarchy of group rows. The order of the list decides the nesting depth, so users can drill from broad to specific categories.
Planned. This page shows the specification from issue #196. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Orders grid grouped by Region > Country. The first level is expanded.
Expected behavior
Adding a column adds a deeper level, and reordering the selection changes the nesting. Indentation updates live. The expanded state of levels that still exist is preserved where their keys match.
Planned API surface
options.grouping.groupByoptions.grouping.indentPerLevelapi.setGroupByAcceptance criteria
- groupBy of length N produces group rows with aria-level values from 1 to N. (pending)
- Leaf rows render at depth N+1. (pending)
- The child count of a parent group equals the sum of the leaf counts in its descendants. (pending)
- Reordering the groupBy list rebuilds the hierarchy without duplicating or losing leaf rows. (pending)