Threaded View

  1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    15
    Vote Rating
    0
    Salah91 is on a distinguished road

      0  

    Default Answered: Grouping feature events don't get triggered

    Answered: Grouping feature events don't get triggered


    Hi everyone!

    I have an issue when using the grid grouping feature.
    I'd like to catch the 'click' event so I added the listener like this :
    Code:
    var groupingFeature = Ext.create('Ext.grid.feature.Grouping',{        groupHeaderTpl: 'Cuisine: {name} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})',
        listeners: {
            'click': function() {
                alert("test");
            }
        }
    
        });


    And I get this error in console :
    Code:
    Uncaught TypeError: Cannot read property 'click' of undefined
    I used the sample code : http://dev.sencha.com/deploy/ext-4.0...groupgrid.html
    The grouping feature works well, I just can't catch the events.

    Any idea of what's going on ?
    Thanks for your time.

    Edit : Same issue with 'groupclick' and 'groupcollapse' events.

  2. try also to add this as a grid property!
    Code:
            viewConfig : {
                listeners : {
                    'groupclick' : function() {
                        alert('success');
                    }
                }
            }

Thread Participants: 1

Tags for this Thread