Example of Default Aggregate in ASP.NET Core Data Grid Control

This sample demonstrates aggregate functionality of the Grid. In this sample, the aggregate value for the column “Freight” is displayed in column footer.

DEMO
SOURCE

The Grid supports aggregates which will be displayed at the footer, group footer and group caption of the Grid. The aggregate configurations can be provided by the aggregates property.

The built-in aggregates are,

  • Sum
  • Average
  • Min
  • Max
  • Count
  • Truecount
  • Falsecount
  • Custom - Requires the customAggregate property to perform aggregation.

The custom aggregate value can be accessed inside template using the key ${Custom}

The template expression should be provided inside ${...} the interpolation syntax.

Transform your ASP.NET Core web apps today with Syncfusion ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE