Edit this page

serverAggregates Boolean (default: false)

If set to true, the data source will leave the aggregate calculation to the remote service. By default, the data source calculates aggregates client-side.

Configure schema.aggregates if you set serverAggregates to true.

For more information and tips about client and server data operations, refer to the introductory article on the DataSource.

Example - enable server aggregates

<script>
var dataSource = new kendo.data.DataSource({
  transport: {
    /* transport configuration */
  },
  serverAggregates: true,
  aggregate: [
    { field: "age", aggregate: "sum" }
  ],
  schema: {
    aggregates: "aggregates" // aggregate results are returned in the "aggregates" field of the response
  }
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy