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

ScrollViewer behaviour when inserting items

1 Answer 7 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gerrit Fölster
Top achievements
Rank 1
Gerrit Fölster asked on 07 Nov 2013, 02:22 PM
Hi Telerik Team,

I have a GridView with vertical scrolling and a databound collection, the scrollbar is at its topmost position.
When I insert more items into the databound collection at index 0 the scrollbar remains at the topmost position, so the new items are shown in the gridview.

Is there a way to change the scrolling behaviour, so that the items that were shown in the gridview before I added new items are still shown afterwards. The ideal behaviour would be that the shown items don't change at all, but the scrollbar changes indicating that there are more items above the current items now.

I know I can reset the position manually by calling ScrollIntoView(...), but that looks kind of ugly. 
Any ideas?

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 11 Nov 2013, 01:49 PM
Hi,

I am afraid that this ScrollBar's behavior cannot be changed. The way to control its position is indeed through using the ScrollIntoView methods.
 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Gerrit Fölster
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or