:: 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?
Stephen
Wednesday, May 30, 2007
You can use either
grid.setScrollTop(2090); // assuming row height is 19px
or
grid.setCurrentRow(110); // could be at the bottom of the visible area
Alex (ActiveWidgets)
Wednesday, May 30, 2007
Thanks,
That work. Is there a way to have row 110 selected and highlighted.
Stephen
Wednesday, May 30, 2007
Yes, -
grid.setCurrentRow(110);
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.
Isaac
Friday, June 22, 2007
This topic is archived.
Back to support forum
Forum search