Example of Custom Aggregate in Javascript Tree Grid Control

/
/
Custom Aggregate

This sample demonstrates custom aggregate and exporting functionality in the Tree Grid. Aggregate values for the columns are displayed in the column footer, and export options are available via the toolbar buttons.

More Details...

Description

The Tree Grid supports displaying aggregates in the footer, which can be configured using the aggregates property. Here, a customAggregate configuration is applied to the Category column to show a dropdown that displays the count of the selected category. The Tree Grid also supports seamless exports to Excel, PDF, or CSV with a single click. The excelAggregateQueryCellInfo and pdfAggregateQueryCellInfo events ensure that footer aggregate values are accurately preserved in the exported files. More information about custom aggregate can be found in this documentation section.