Results 1 to 9 of 9

Thread: Grid Grouping feature: Grouping for columns with no values (empty string)

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

    Default Grid Grouping feature: Grouping for columns with no values (empty string)

    Hi,

    i'm upgrading a website from ExtJs 4 to 5, which is.. time consuming.. to say the least because of a loooot of breaking changes, especially concerning edge cases.

    And because this one is so nice to reproduce I thought I share this one.
    Just paste it in Sencha Fiddle and try running it first on ExtJs 4.x (works) and then on 5.x (crashes):

    Code:
    var store = Ext.create('Ext.data.Store', {    storeId:'employeeStore',
        fields:['name', 'seniority', 'department'],
        groupField: 'department',
        data: {'employees':[
            { "name": "Michael Scott",  "seniority": 7, "department": "Sales" },
            { "name": "K.I.T.T",  "seniority": 7, "department": "" }, //Empty department value is nor problem in Ext 4!!!
            { "name": "Dwight Schrute", "seniority": 2, "department": "Sales" },
            { "name": "Jim Halpert",    "seniority": 3, "department": "Sales" },
            { "name": "Kevin Malone",   "seniority": 4, "department": "Accounting" },
            { "name": "Angela Martin",  "seniority": 5, "department": "Accounting" }
        ]},
        proxy: {
            type: 'memory',
            reader: {
                type: 'json',
                root: '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'}],
        width: 200,
        height: 275,
        renderTo: Ext.getBody()
    });
    I really beg you at this point: Please, PLEASE put more focus on avoiding breaking changes in ExtJs.

  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
    Touch Premium Member
    Join Date
    Aug 2011
    Posts
    4

    Default

    I'm having the same issue. It's great that you've opened a bug for it. I would like to watch that bug and be notified when it is fixed, but I don't see a way to do that. What is the mechanism for viewing and monitoring bugs for ExtJS?

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Posts
    13

    Default

    Quote Originally Posted by brian_d View Post
    I'm having the same issue. It's great that you've opened a bug for it. I would like to watch that bug and be notified when it is fixed, but I don't see a way to do that. What is the mechanism for viewing and monitoring bugs for ExtJS?
    Unfortunately i have no idea But i'd like to do that too.

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

    Default

    This issue has been fixed for 5.1.2 and 6.0.0. Normally you can track tickets using the message at the top of the thread, but this thread was previously linked to a duplicate ticket for this issue, muddying the waters.

  6. #6
    Sencha User
    Join Date
    Sep 2015
    Posts
    36

    Default

    Is there anyone else that can confirm that this bug is still present in ExtJS 6.0.0? When grouping on an empty column, all groups and their rows disappear from the grid until I do something manually (order by, change paging, refresh).

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

    Default

    I'm afraid I can only confirm the opposite, that this issue has indeed been resolved in 6.0.0. This has been confirmed with the original test case, as seen in this Fiddle:
    https://fiddle.sencha.com/#fiddle/mru

    Are you seeing the issue in that test case? If not, can you please post a test case which reproduces the issue you're seeing?

  8. #8
    Sencha User
    Join Date
    Sep 2015
    Posts
    36

    Default

    Yes, I have created a test case here:
    https://fiddle.sencha.com/#fiddle/16l3

    I
    also created the same case with the same version as the one you posted:
    https://fiddle.sencha.com/#fiddle/16v4

    And as you said, it was fixed there but not in the latest edition.
    Reproduce the issue by:
    - Grouping the project column
    - Collapse/expand the group with the empty text
    - See that group magically disappear
    - Sort by any column and see the group magically reappear again!

    Looks like a pretty well scoped issue so could be easy to track and fix?

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

    Default

    I don't see the issue in 6.0.0, but I do see it back again in 6.0.1. I've reopened the EXTJS-17776 bug ticket so it can be fixed.

Similar Threads

  1. Replies: 13
    Last Post: 23 Apr 2019, 11:20 PM
  2. Replies: 3
    Last Post: 3 Jan 2015, 2:35 AM

Tags for this Thread

Posting Permissions

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