RadRotator WrapFrames not wrapping

2 posts, 0 answers
  1. radfreak
    radfreak avatar
    6 posts
    Member since:
    Dec 2010

    Posted 28 Nov 2011 Link to this post

    Hello all,

    I setup a vertical CoverFlow RadRotator in a user control bound to a generic List<> but i cant seem to get the rotator to "wrap" using WrapFrames="true" and i only get 1 cycle of the items in the List<>. I've tried changing the binding to IEnumerables and string[].
    For this example, the List<> is just List<string> vpaths.

    Heres the markup for the rotator.

    <

    telerik:RadRotator ID="rotatorVerticalMediaItems" runat="server" Height="400px" Width="400px" CssClass="ucCoverArtRotatorV_RotatorStyle" RotatorType="CoverFlow" PauseOnMouseOver="false" Skin="Black" ScrollDuration="2000" ScrollDirection="Down,Up" FrameDuration="1" ItemHeight="300px" ItemWidth="202px" WrapFrames="true">

     

    <ItemTemplate>

     

    <div title='<%# Container.DataItem %>'>

    <a href='<%# Container.DataItem %>'><img class="ucCoverArtRotatorV_CoverArtStyle" alt="" 
        
    src='<%# Container.DataItem %>' /></a>

    </div>

    </ItemTemplate>

    </telerik:RadRotator>

     
    Thanks in advance.

  2. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 01 Dec 2011 Link to this post

    Hello Stuts,

    Currently the RadRotator with RotatorType="CoverFlow" does not offer the option to set the WrapFrames="true", because the CoverFlow RadRotator is designed to be a control that flows through thumbnails of items in either direction.

    You can still achieve a constant rotation of the items by changing the scroll and animation direction, when the last item of the collection is reached, via the client-side event OnClientItemShown. This approach is implemented in the online demo Rotator / CoverFlow Mode.

    I hope that helps. Please let us know if you run into more difficulties.

    Best wishes,
    Slav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top