New to Telerik UI for ASP.NET Core? Download free 30-day trial

Aggregates

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
aggregates.cshtml
AggregatesController.cs
EmployeeDirectoryController.cs
EmployeeDirectoryModel.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The TreeList comes with an option to display aggregated number results when data is grouped. The aggregated result can be displayed in a group header, footer, or the summary footer of the component.

You can enable grouping with aggregates by using the methods DataSource.Aggregates(), ClientGroupFooterTemplate(), ClientGroupHeaderColumnTemplate(), or ClientFooterTemplate(), and the aggregate fields of the TreeList’s data source aggr.Add(e => e.FirstName).Count().

Support & Learning Resources