PDA

View Full Version : How to get the index of selected row after each Sort?



Satakshi
5 May 2012, 11:02 PM
According to my rquirement I want to get the index of the selected row of a grid, whenever a sort event&amp;nbsp; (the default one of EXT JS4 )occurs.<br>Please help.

scottmartin
9 May 2012, 10:56 AM
You create a listener for the grid to get this information:



this.grid.getSelectionModel().on('select', function(selModel, model, idx) {
}, this);


Regards,
Scott.