PDA

View Full Version : Auto scroll grid with selections



varunjyoti
22 Jan 2012, 10:15 PM
Hi

I have a grid with scroll bars. There are some records in the grid.
I am selecting a row using getSelectionModel.select() method. The specified row gets selected but if that row is at the bottom of the grid, or if it is below the viewable grid area, the scroll bar remians unmoved. So the selected row is not visible to the user. I want the selected row to be viewable to the user.

Thanks

mitchellsimoens
23 Jan 2012, 12:12 PM
You can use setScrollTop on Ext.grid.Scroller (4.0.7) or Ext.panel.Tabel (4.1.0) or do it via JS/CSS