New to Telerik UI for ASP.NET Core? Download free 30-day trial
Aggregates
Loading Demo...
- EXAMPLE
- VIEW SOURCE
-
EDIT IN TELERIK REPL
-
Change Theme
default
- Main
- Main Dark
- Nordic
- Ocean Blue
- Purple
- Turquoise
- Main
- Main Dark
- Nordic
- Urban
- Vintage
- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
- Main
- Main Dark
- Opal
- Silver
aggregates.cshtml
AggregatesController.cs
EmployeeDirectoryController.cs
EmployeeDirectoryModel.cs
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
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().