RadRotator is automatically reseting scroll position

2 posts, 0 answers
  1. Richard
    Richard avatar
    43 posts
    Member since:
    Oct 2007

    Posted 05 Nov 2010 Link to this post

    We've have a radrotator on a page (see http://www.playitback.org/player.aspx?f=257&c=387 as example)  in which users can scroll through sets of slides.  When the user clicks on a slide, the OnItemClick="ShowImage" is triggered and the image is updated with a new source.  The problem I am having is that when a user clicks on image which is located after the initial set (e.g. slide 11), then the position of the RadRotator rewinds and positions back at the start.

    Is there anyway of implementing it so that it doesn't reset the scroll position?

  2. Fiko
    Fiko avatar
    1406 posts

    Posted 10 Nov 2010 Link to this post

    Hello Richard,

    You need to maintain the current index manually. You can achieve this by using this code:
    protected void RadRotatorThumbs_ItemClick(object sender, RadRotatorEventArgs e)
        RadRotator rotator = sender as RadRotator;
        rotator.InitialItemIndex = e.Item.Index;

    Kind regards,
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top