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

[Solved] Vertical Scroll Position Lost when RowDetailsVisibilityMode is Changed

1 Answer 90 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James
Top achievements
Rank 1
James asked on 14 Jun 2011, 05:25 PM
I've found that when I change the RowDetailsVisibilityMode of the RadGridView  (I'm toggling between Collapsed and VisibleWhenSelected) the vertical scroll position of my RadGridView is lost -- it's just reset to the top of the grid.  Is this the expected behavior?   What's the best approach to retain the original scroll position in this scenario?

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 16 Jun 2011, 09:16 AM
Hello James,

 Yes, this is the expected behavior of the RadGridView. When the RowDetailsVisibilityMode is changed, the height of the GridView is changed and it is hard to keep exact the same position the scroll bar .

If you have selected a row where your Scrollbar is, then you may scroll to the position of the selected row using ScrollIntoViewAsync method. There is not a recommended approach, so that you may keep the exact original position if you do not have a selected row.

If you have any further questions, please do not hesitate to contact us.

Kind regards,
Didie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
James
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or