3.2.0

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
May 30,
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)
May 30,
Thanks,

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

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

Any idea? Thanks.
Isaac
June 22,

This topic is archived.

See also:


Back to support forum