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

2 posts, 0 answers
  1. Andrew N
    Andrew N avatar
    11 posts
    Member since:
    Mar 2010

    Posted 05 Apr 2010 Link to this post

    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!
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 08 Apr 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top