PDA

View Full Version : Set a row to the top of a GridView?



mclovin
12 Feb 2010, 12:40 PM
Hello,

Is it possible to bring a given row to the top of a GridView given the row index? For example, if I have a GridPanel with a list of US States, and I know Indiana has rowIndex of 15, is it possible to set Indiana to the top of the Grid?

I noticed that there is scrollToTop() in the GridView api. What I am looking for is the same functionality but with a rowIndex argument where the Grid will set that row to the top of the view. Like this:


scrollTo(15)

Is this available anywhere?
Thanks,
-Jim

mclovin
17 Feb 2010, 3:22 PM
Does anybody have any ideas about this?

goldledoigt
17 Feb 2010, 3:55 PM
did you try focusRow from Ext.grid.GridView class ?