Results 1 to 5 of 5

Thread: Grid grouper with sort property and grid sort combined bug

    You found a bug! We've classified it as EXTJS-16411 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    22

    Default Grid grouper with sort property and grid sort combined bug

    Hi

    In a grouped grid, where the grouping feature has a sortProperty set (which is different from the grouper property), and the grid itself has another sort property set, multiple "same" groups will be shown:

    gridgroupsortbug.png


    Fiddle:
    https://fiddle.sencha.com/#fiddle/g4a

    Code:
    Ext.application({
        name : 'Fiddle',
        launch : function() {
            var store = Ext.create('Ext.data.Store', {
                storeId:'employeeStore',
                fields:['name', 'seniority', 'department', 'groupsort'],
                grouper: {
                    property: 'department',
                    sortProperty: 'groupsort'
                },
                sorters: [{
                    property: 'name'
                }],
                data: {'employees':[
                    { "name": "Michael Scotts",  "seniority": 7, "department": "Management", "groupsort" : "a" },
                    { "name": "Dwight Schrute", "seniority": 2, "department": "Sales", "groupsort" : "a" },
                    { "name": "Jim Halpert",    "seniority": 3, "department": "Sales", "groupsort" : "a" },
                    { "name": "Kevin Malone",   "seniority": 4, "department": "Accounting", "groupsort" : "a" },
                    { "name": "Angela Martin",  "seniority": 5, "department": "Accounting", "groupsort" : "a" }
                ]},
                proxy: {
                    type: 'memory',
                    reader: {
                        type: 'json',
                        rootProperty: 'employees'
                    }
                }
            });
            
            Ext.create('Ext.grid.Panel', {
                title: 'Employees',
                store: Ext.data.StoreManager.lookup('employeeStore'),
                columns: [
                    { text: 'Name',     dataIndex: 'name' },
                    { text: 'Seniority', dataIndex: 'seniority' }
                ],
                features: [{
                    ftype: 'grouping'
                }],
                renderTo: Ext.getBody()
            });
        }
    });

    I would expect to get the distinct groups, those sorted by the grouper.sortProperty, and then in these the items sorted by the sorter.property..

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    22

    Default

    Hi

    Any news on that bug?

    How will we get the fix - will you post it in this thread?

    Thanks

  4. #4
    Sencha User
    Join Date
    Apr 2015
    Posts
    2

    Default

    Has this bug been fixed in newer versions and where can I track it ?

  5. #5

    Default

    Hello all, this bug still exists in 6.5. It's been more than 4 years and no fix for this bug yet?

    Has anyone found a workaround to this issue?

    Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •