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

Aggregates

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Theme Builder
  • aggregates.cshtml
  • AggregatesController.cs
  • ProductService.cs
  • ProductViewModel.cs

Also available for:

API REFERENCE

Description

In some situations when displaying numbers in the grid, users would like to be able to see the results from aggregate calculations at the bottom of the grid groups or columns.

This is a easy with the ASP.NET Core Grid since it offers built-in support for the most popular aggregate functions: Average, Count, Sum, Min, Max and Count. All you need to do is define the aggregates via the Group and Aggregates fields of its DataSource instance and access them in the client templates.
Columns.ClientGroupHeaderColumnTemplate().ClientFooterTemplate().ClientGroupFooterTemplate()
Please check the Group Templates article to learn more about different types of group templates available for the Telerik ASP.NET Core Grid.

More about Telerik Grid for ASP.NET Core

Support & Learning Resources