/ Published in: JavaScript
This refers to Ext JS version 3 !
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// add a listener to the grid and add the following lines this.on('rowcontextmenu', function(grid, row, e) { grid.selectedNode = grid.store.getAt(row); // we need this if((row) !== false) { this.getSelectionModel().selectRow(row); } ... and the rest of your code ... }, this);