Question

Pouvez-vous me dire comment attacher headerclick ou d'un événement headerdblclick à Ext.grid.GridPanel?

Était-ce utile?

La solution

Vous pouvez utiliser la configuration des auditeurs (au moment de la configuration) ou la méthode .on () (avec une grille de référence).

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

ou

myGrid.on('headerclick', function(grid, col, e){
    // whatever
});
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top