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

[Solved] Keep scrollbar position

1 Answer 113 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.
ss
Top achievements
Rank 1
ss asked on 05 Oct 2010, 11:41 AM

If I remove some rows from RadGrivView VerticalScrollBar position is changed. If I add some rows to RadGridView VerticalScrollBar position is not changed. I need to keep scrollbar position in both cases. Is it possible?

I have RadGridView ItemsSource (ObservableCollection). Everych 5 second i remove first item and add new item to the end of the datasource. My problem is that I need to keep rows posititon.

Thank you very much.

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 05 Oct 2010, 02:39 PM
Hi ss,

You may call the ScrollIntoView method of RadGridView  after performing the update.
This way you will always have the desired item in to view .

Hope that helps.

Regards,
Pavel Pavlov
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
ss
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or