Results 1 to 2 of 2

Thread: groupclick event does not work with locked gridcolumns

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2013
    Posts
    16

    Default Answered: groupclick event does not work with locked gridcolumns

    I noticed that the groupclick event does not work once there is one column in a locked state. I suppose this has something to do with the fact that there is actually an extra grid created on the fly. I have made a Sencha Fiddle to see if this behaviour has something to do with the version (4.2.1) of ExtJs I use, but it seems to occur in every version.
    Has anyone encountered this as well and, more important, has anyone found a workaround for this.

    code:
    Code:
    var store = Ext.create('Ext.data.Store', {
                storeId: 'employeeStore',
                fields: ['name', 'seniority', 'department'],
                groupField: 'department',
                data: {
                    'employees': [{
                        "name": "Michael Scott",
                        "seniority": 7,
                        "department": "Management"
                    }, {
                        "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',
                forceFit: true,
                store: Ext.data.StoreManager.lookup('employeeStore'),
                columns: [{
                    text: 'Name',
                    dataIndex: 'name'
                }, {
                    text: 'Seniority',
                    dataIndex: 'seniority',
                    locked: true      //alter this line to see change in behaviour
                }],
                features: [{
                    ftype: 'grouping'
                }],
                width: 500,
                height: 575,
                renderTo: Ext.getBody(),
                listeners: {
                    groupclick: function() {
                       alert('click');
                    }
                }
            });

  2. Hi--

    If you add the listeners to the viewConfig, it should work as expected.

    Thanks
    Joel

  3. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi--

    If you add the listeners to the viewConfig, it should work as expected.

    Thanks
    Joel

Similar Threads

  1. [CLOSED] stopEvent doesn't work in groupclick
    By maksym_t in forum Ext 5: Bugs
    Replies: 2
    Last Post: 18 Aug 2015, 12:18 AM
  2. [CLOSED] Scope in gridcolumns summaryRenderer not consistent
    By _alex in forum Ext:Bugs
    Replies: 4
    Last Post: 19 Jan 2014, 6:53 AM
  3. Replies: 2
    Last Post: 21 Nov 2011, 3:05 AM
  4. Grouping Summary groupclick event listener
    By scancubus in forum Ext: Q&A
    Replies: 3
    Last Post: 3 Oct 2011, 10:56 AM
  5. Replies: 1
    Last Post: 30 Mar 2011, 11:07 PM

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
  •