columns.aggregates Array

The aggregate(s) which are calculated when the grid is grouped by the columns field. The supported aggregates are "average", "count", "max", "min" and "sum".

Example - set column aggregates

<div id="grid"></div>
<script>
  let encode = kendo.htmlEncode;

  $("#grid").kendoGrid({
    columns: [
      { field: "firstName", groupable: false },
      { field: "lastName" }, /* group by this column to see the footer template */
      { field: "age",
       groupable: false,
       aggregates: [ "count", "min", "max" ],
       groupFooterTemplate: ({ age }) => `age total: ${encode(age.count)}, min: ${encode(age.min)}, max: ${encode(age.max)}`
      }
    ],
    groupable: true,
    scrollable: false,
    dataSource: {
      data: [
        { firstName: "Jane", lastName: "Doe", age: 30 },
        { firstName: "John", lastName: "Doe", age: 33 }
      ]
    }
  ],
  groupable: true,
  scrollable: false,
  dataSource: {
    data: [
      { firstName: "Jane", lastName: "Doe", age: 30 },
      { firstName: "John", lastName: "Doe", age: 33 }
    ],
    group: {
      field: "age", aggregates: [
        { field: "age", aggregate: "count" },
        { field: "age", aggregate: "min"},
        { field: "age", aggregate: "max" }
      ]
    }
  }
});
</script>

Check Aggregates for a live demo.

In this article