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

Aggregates

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Theme Builder
  • aggregates.cshtml
  • AggregatesController.cs
  • ProductService.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 MVC 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 Columns-> ClientGroupHeaderColumnTemplate, ClientFooterTemplate and ClientGroupFooterTemplate templates, and the Group and Aggregate fields of its DataSource instance.

Please check the Group Templates article to learn more about different types of group templates available for the Telerik ASP.NET MVC Grid.

Support & Learning Resources