This is a migrated thread and some comments may be shown as answers.

[Solved] Columns aggregreating for all pages.

1 Answer 586 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ziyahan
Top achievements
Rank 1
ziyahan asked on 28 Jan 2015, 07:52 AM
Hi All;
I am using server side paging and I set my grid to show column sum at the column`'s footer. However, it calculates the sum data for each page. I want to calculate it for all page at once and show it in footer.
Is there a solution to do this?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 30 Jan 2015, 08:01 AM
Hello Emre,

Aggregates for the whole Grid is demonstrated in the following example here:

http://demos.telerik.com/kendo-ui/grid/aggregates

In the example above the Grid uses serverPaging set to false (so all the data) is available on the client.

Since in your case you probably use serverPaging set to true, you also need to enable serverAggregates and calculate those on the server.

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-aggregate
http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-serverAggregates
http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-schema.aggregates

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
ziyahan
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or