PDA

View Full Version : How do I get the current grid row selection's ID?



darren
5 Apr 2010, 11:10 AM
getSelectedRow seems to be deprecated, is there any other ways? Will I have to do a listener to every row or when it is clicked and set a variable value?

steffenk
5 Apr 2010, 11:14 AM
try

grid.getSelectionModel().getSelected()
http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.RowSelectionModel&member=getSelected

darren
5 Apr 2010, 1:32 PM
Thanks, that helped out :).