1. #1
    Sencha User BulletzBill's Avatar
    Join Date
    Mar 2010
    Location
    New York
    Posts
    138
    Vote Rating
    0
    BulletzBill is on a distinguished road

      0  

    Default 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:

    PHP Code:
    ... 
    features: [
        {
            
    ftype'groupingsummary',
            
    groupHeaderTpl'{name}',
            
    enableGroupedHeadertrue,
            
    enableGroupingMenufalse,
            
    remoteRoot'summaryData'
        
    }
    ],
    .... 
    And the JSON returned by the server is like:
    PHP Code:
    {
        
    total48,
        
    results: [ ... ],
        
    summaryData: {
            
    'groupingValue1': {
                
    'dataIndexName1'43242,
                
    'dataIndexName2'85,
                ...
            },
            ...
        }

    And thats it. Am I missing any other configuration or anything in order to get this working in 4.1?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,010
    Vote Rating
    460
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Do you have groupField set in your store? Can you provide more details?

    Regards,
    Scott

  3. #3
    Sencha User BulletzBill's Avatar
    Join Date
    Mar 2010
    Location
    New York
    Posts
    138
    Vote Rating
    0
    BulletzBill is on a distinguished road

      0  

    Default


    Quote Originally Posted by scottmartin View Post
    Do you have groupField set in your store? Can you provide more details?

    Regards,
    Scott
    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

Thread Participants: 1