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

RadRotator is automatically reseting scroll position

1 Answer 54 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 2
Richard asked on 05 Nov 2010, 01:52 PM
Hi,
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?

Thanks
R

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 10 Nov 2010, 05:39 PM
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,
Fiko
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
Rotator
Asked by
Richard
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Share this question
or