• Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Localization
*Translated by Google Translator.
Currency
Essential Studio
HOME
All Controls

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

This sample demonstrates aggregate functionality of the TreeGrid. In this sample, the aggregate value for the column "Approved" is displayed in column footer and provide an option to show child summary.

DEMO
SOURCE
Show Child Summary

The TreeGrid supports aggregates which will be displayed at the footer and every hierarchy level. 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}

In this demo, the footerTemplate property is used for showing count aggregate for "Approved" column and the footerTemplate using its type name as (${TrueCount}).

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


More information on the data binding can be found in this documentation section.