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

ASP.NET Core Grid Aggregates

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
aggregates.cshtml
AggregatesController.cs
ProductService.cs
ProductViewModel.cs
Aggregates_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

Some development scenarios require the Telerik UI for ASP.NET Core Grid to display results from aggregate calculations at its bottom groups or columns.

The ASP.NET Core Data Grid comes with built-in support for the most popular aggregate functions such as Average, Count, Sum, Min, Max, and Count. To enable the required aggregate functions, define the aggregates through the available ClientGroupHeaderColumnTemplate, ClientFooterTemplate, and ClientGroupFooterTemplate Columns templates, and the Group and Aggregate fields of its DataSource instance.

For more information on the aggregates feature, refer to the documentation about managing the group templates of the Telerik UI for ASP.NET Core Data Grid.

Additional Apps

This Grid example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources