문제

Can you tell me how to attach headerclick or headerdblclick event to Ext.grid.GridPanel?

도움이 되었습니까?

해결책

You can either use the listeners config (at config time) or the .on() method (with a grid reference).

{
    xtype: 'grid',
    listeners: {
        'headerclick': {
            fn: function(grid, col, e){
                // whatever
            },
            scope: this
         }
     }
 }

or

myGrid.on('headerclick', function(grid, col, e){
    // whatever
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top