Example of Custom Aggregate in ASP.NET MVC Tree Grid Control

This sample demonstrates custom aggregates 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.

DEMO
SOURCE

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 acurately preserved in the exported files.

More information about aggregate can be found in this documentationopens in a new tab section.

Transform your ASP.NET MVC web apps today with Syncfusion® ASP.NET MVC components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab