Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    15
    Vote Rating
    0
    JimSoper is on a distinguished road

      0  

    Default Grid: 'grouping' & 'groupsummary' cannot coexist

    Grid: 'grouping' & 'groupsummary' cannot coexist


    Having ftypes 'grouping' and 'groupsummary'
    in the same Grid breaks in updateIndexes()

    Example modified from
    http://docs.sencha.com/ext-js/4-1/#!...roupingSummary
    Example Usage

    -----------------------------

    Ext.define('TestResult', {
    extend: 'Ext.data.Model',
    fields: ['student', 'subject', {
    name: 'mark',
    type: 'int'
    }]
    });

    Ext.create('Ext.grid.Panel', {
    width: 200,
    height: 240,
    renderTo: document.body,
    features: [
    { ftype :'grouping' },
    {
    groupHeaderTpl: 'Subject: {name}',
    ftype: 'groupingsummary'
    }],
    store: {
    model: 'TestResult',
    groupField: 'subject',
    data: [{
    student: 'Student 1',
    subject: 'Math',
    mark: 84
    },{
    student: 'Student 1',
    subject: 'Science',
    mark: 72
    },{
    student: 'Student 2',
    subject: 'Math',
    mark: 96
    },{
    student: 'Student 2',
    subject: 'Science',
    mark: 68
    }]
    },
    columns: [{
    dataIndex: 'student',
    text: 'Name',
    summaryType: 'count',
    summaryRenderer: function(value){
    return Ext.String.format('{0} student{1}', value, value !== 1 ? 's' : '');
    }
    }, {
    dataIndex: 'mark',
    text: 'Mark',
    summaryType: 'average'
    }]
    });

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,159
    Vote Rating
    674
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    You aren't supposed to use them together. GroupingSummary gives you the grouping functionality, you can see in the docs it extends: "Ext.grid.feature.Grouping".
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!