:: Forum >>

auto scroll to a select row

Say you have a grid containing 200 rows. Is there a way to auto scroll to row 110 when the grid is displayed?
Wednesday, May 30, 2007
You can use either

grid.setScrollTop(2090); // assuming row height is 19px


grid.setCurrentRow(110); // could be at the bottom of the visible area
Alex (ActiveWidgets)
Wednesday, May 30, 2007

That work. Is there a way to have row 110 selected and highlighted.
Wednesday, May 30, 2007
Yes, -

grid.setSelectedRows([110]); //can select multiple rows
Alex (ActiveWidgets)
Thursday, May 31, 2007
This doesn't seem to work after performing a sort, which obviously modifies the order of the indices.

Any idea? Thanks.
Friday, June 22, 2007

This topic is archived.

Back to support forum

Forum search