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

RadRotator WrapFrames not wrapping

1 Answer 88 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
radfreak
Top achievements
Rank 1
radfreak asked on 28 Nov 2011, 08:25 PM
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.

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 01 Dec 2011, 03:19 PM
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
Tags
Rotator
Asked by
radfreak
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or