-
7 May 2012 6:43 AM #1
Can't get groupingSummary working with "remoteRoot" configuration
Can't get groupingSummary working with "remoteRoot" configuration
What I had for my grids to enable remote grouping summary data was working in 4.0.7 but no longer does in 4.1. The summary row is being displayed in the grid for each group, but none of the summary data returned by the server is being displayed in their respective columns. My grid config is as follows:
And the JSON returned by the server is like:PHP Code:...
features: [
{
ftype: 'groupingsummary',
groupHeaderTpl: '{name}',
enableGroupedHeader: true,
enableGroupingMenu: false,
remoteRoot: 'summaryData'
}
],
....
And thats it. Am I missing any other configuration or anything in order to get this working in 4.1?PHP Code:{
total: 48,
results: [ ... ],
summaryData: {
'groupingValue1': {
'dataIndexName1': 43242,
'dataIndexName2': 85,
...
},
...
}
}
-
9 May 2012 2:27 PM #2
Do you have groupField set in your store? Can you provide more details?
Regards,
Scott
-
10 May 2012 11:48 AM #3
Yeah, I do have the groupField set in the store configuration, and the grid rows are being grouped correctly when the store is loaded, just no values in the summary row. FYI, I am able to get values to display in the summary row if i set a summaryType in any of the column configs to "sum", "average" ect, however as these are client-side calculated values its not what I want when using the remoteRoot config option.
Is there any other info I can provide that would help troubleshoot this?
Thanks


Reply With Quote
