ScrollViewer behaviour when inserting items

2 posts, 0 answers
  1. Gerrit Fölster
    Gerrit Fölster avatar
    6 posts
    Member since:
    Sep 2009

    Posted 07 Nov 2013 Link to this post

    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?
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 11 Nov 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top