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

MVC - Server Paging and Aggregates

5 Answers 477 Views
Grid
This is a migrated thread and some comments may be shown as answers.
IT Dept
Top achievements
Rank 1
IT Dept asked on 02 May 2013, 12:50 PM
Hi, pretty simple question that I can't find any example of.

Is it possible to get aggregates for a DataGrid that also has an Ajax DataSource with Server Paging?

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 06 May 2013, 07:34 AM
Hello,

 Yes, this is possible however the aggregates must be calculated on the server side as well in order to be correct. If not the data source will aggregate only the current page of data.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
IT Dept
Top achievements
Rank 1
answered on 06 May 2013, 07:45 AM
Thank you Atanas,

Do you have some sort of demo/example page I can follow as I've been going through everything and cannot find anything that does this.

Thanks
0
Atanas Korchev
Telerik team
answered on 06 May 2013, 08:15 AM
Hello,

We don't have examples showing how to calculate aggregates server-side.

 However our server-side products Kendo UI for ASP.NET MVC, PHP and JSP support server-side aggregates, paging, filtering, sorting and grouping out of the box.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
IT Dept
Top achievements
Rank 1
answered on 06 May 2013, 08:31 AM
Calculation of the aggregates is the least of my worries though.

It's the grid's configuration and what needs to be sent back to the grid that is a bit cryptic.
0
Atanas Korchev
Telerik team
answered on 06 May 2013, 08:51 AM
Hello,

 There are two configuration settings which apply to data source server aggregates:
 serverAggregates
 schema.aggregates

 The aggregates are sent to the remote service as defined in the parameterMap.

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