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

Grid with a datasource configured to do serverAggregates and serverGrouping.

0 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
MK
Top achievements
Rank 1
MK asked on 20 Jun 2012, 07:27 PM
I have a grid that allows a user to display data in both grouped and none grouped format. The datasource (ds) is using json to read the data from the server. The datasource is currently configured to do server side paging and filtering. I would like to also enable this datasource to be able to do server side grouping and Aggregates on the data.

My ds currently defines the schema: { data: "DateList", total: "TotalResultsā€¯ model: { //fields are declared}}

And my grid currently defines the columns that need to be displayed.

In what format does my code need to returned the grouped data to the ds? And also how do I need to format the Aggregates that are calculated for each grouping?  Keeping in mind that the grid allows for displaying of non grouped and grouped data.  Do I need to change anything with how the ds is defined in regards to the schema? Do I need to change anything with how the grid is defined in regards to the column list?

An example of a grid that allows for grouped and none grouped results and does server side grouping would help.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
MK
Top achievements
Rank 1
Share this question
or