ExtJS grid - how to focus on added row?
How is your data being added (append-mode or not?). You can do grid_panel.getView().focusRow(row)
on the length of the data array in the store, which will focus on the "last" row that was inserted. Also, you could hook into the rowsinserted
event of GridView
, and focusRow
on the lastRow
parameter that's passed in there.