aggregates
Returns the aggregate results.
Returns
Object—The aggregate results. There is a key for every aggregated field.
Example - get aggregate results
<script> var dataSource= new kendo.data.DataSource({ data: [ { name: "Jane Doe", age: 30 }, { name: "John Doe", age: 33 } ], aggregate: [ { field: "age", aggregate: "min" }, { field: "age", aggregate: "max" } ] }); dataSource.read(); var ageAggregates = dataSource.aggregates().age; /* The result can be observed in the DevTools(F12) console of the browser. */ console.log(ageAggregates.min); // displays "30" /* The result can be observed in the DevTools(F12) console of the browser. */ console.log(ageAggregates.max); // displays "33" </script> In this article