Row groups, aggregates and totals in export
Exports grouped data with group header rows, optional outline levels (XLSX), group subtotal rows and a grand total footer row. The grid's existing aggregation definitions are reused, so totals in the export match totals on screen.
Planned. This page shows the specification from issue #200. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Grid grouped by region then product, with a sum on amount and an average on margin.
Expected behavior
The export contains group header rows, subtotal rows after each group and a final total row. XLSX outline levels match the group depth.
Planned API surface
exportOptions.rowGroups'include' | 'flatten'exportOptions.groupTotalsexportOptions.grandTotalxlsx.outlineexportOptions.collapsedGroups'expand' | 'respect'Acceptance criteria
- Group header rows include the group key and the child count. (pending)
- Subtotal values equal the grid's on-screen aggregates. (pending)
- 'flatten' mode adds the group key columns to every leaf row instead of header rows. (pending)
- XLSX outline levels equal the group nesting depth. (pending)
- With collapsedGroups 'respect', collapsed groups export only their header and total rows. (pending)