I have following code
grid.on('contextmenu', this.onContextMenu, this);
onContextMenu: function (e) {
// I want the grid here
},
there is only one argument 'e'. I cannot use 'this' as the grid is inside panel and 'this' returns panel not the grid. I am using Extjs 2.3.0.