1

enter image description hereExtjs grid when 'remoteSort: true' than grouping is wrong. and when I set 'remoteSort: false' it works fine what seems to be the problem

here is a little code that is grid feature

features: [
    {
        ftype: 'grouping',
        groupHeaderTpl: [
            '{columnName} : {name} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})'
        ]
    }
],

and that is store

list: {
        remoteSort: true,
        pageSize: 50,
        model: 'List',
        proxy: {
            type: 'ajax',
            url: '/records/load',

            reader: {
                type: 'json',
                rootProperty: 'items'
            }
        }
    }

and on button click

onGroupSubtypeClick: function(item, e, eOpts) {
    var store = this.getViewModel().getStore('list');
    store.group('level1Name');
},
Darin Kolev
  • 3,401
  • 13
  • 31
  • 46
Waqar Haider
  • 929
  • 10
  • 33

0 Answers0