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

Can the Rotator "rewind" when the Automatic Advance is complete

1 Answer 28 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Andrew N
Top achievements
Rank 1
Andrew N asked on 06 Apr 2010, 03:51 AM
Instead of looping through the items in the rotator I'd like to have it come to the end and after displaying the last item rewind back to the beginning, quickly if possible.

i was able to emulate this as closely as possible by placing a counter on the items and when the last item is displayed I reverse the direction of the rotator and decrease scroll and frame duration to 0, but I don't get the effect I'm looking for. It does rewind, but it pauses slightly between each frame which doesn't give the wanted effect of "sliding" back to the starting position.

Additionally while I'm here... Is there any way to retreive how many items are in the rotator display window and how tall they are?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 08 Apr 2010, 02:45 PM
Hi Andrew,

There is no built-in functionality that will make the rotator "rewind" to its first item, after all items have been displayed. The only way to achieve the desired effect is by using some custom code, and setting the right scroll and frame duration. For example, if you set FrameDuration="0" and ScrollDuration="100", to the rotator in the following demo: http://demos.telerik.com/aspnet-ajax/rotator/examples/default/defaultcs.aspx, the items will be scrolled very quickly.

There is no built-in way to retrieve the number of the currently shown items in the rotator's viewport. If the items have fixed dimensions (fixed ItemWidth and ItemHeight), then it is easy to compute how many items are displayed. Otherwise, it is fairly complicated to determine the number of the items in the viewport. The same is true, for the dimensions of the items.


Regards,
Pero
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
Andrew N
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or