This is a migrated thread and some comments may be shown as answers.

[Solved] Scroll to a row in code

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Barry
Top achievements
Rank 1
Barry asked on 24 Sep 2009, 08:33 AM
Hi,

I'm trying out a grid with about 50 rows, with scrolling and no paging.  The grid displays 15 rows and user has to scroll vertically to see the rest.

When the grid first displays, it naturally goes to the top of the grid displaying rows 1 through 15.  Say if depending on some other action from the user, I need to have to grid "position" itself so that row 45 is visible.  In other words, somehow scroll the grid in code so that when the grid first displays, row 45 is visible immediately without user having to scroll to it.  What's the best way to achive this?

Thanks.

Barry

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Sep 2009, 08:55 AM
Hello Barry,

Check out the following document which explains on how to bring focus to a selected item when the page first loads. Hopefully this should help you. You can alter the logic according to your requirements.
Scrolling to the selected item

Thanks
Princy.
Tags
Grid
Asked by
Barry
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or