View Full Version : Tab in a Grid

11 Nov 2009, 9:51 PM
i had three row in my grid(all are editor). Is there anyway to get Row value when i press tabs continuously(or how to take "row number" of selected grid row)
Here is my grid picture..

1)Here you can see tab was in third row, but grid was selected in first row.
2)Is possible for getting row number of first selected row.
Thankz a lot.

12 Nov 2009, 8:55 AM
You can use the RowSelectionModel (http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.RowSelectionModel) and you can do several things to get it...

You can use the each() method and after you get what you want return false to end the iteration.

You can use the selectFirstRow() method and then getSelected() and that will return the row objecct.