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

Disable automatic scrolling Carousel

1 Answer 63 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Jocelyn
Top achievements
Rank 1
Jocelyn asked on 17 Feb 2012, 04:48 PM
I am using a rotator like a menu, and I don't want automatic scrolling. How can I disable it?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Slav
Telerik team
answered on 21 Feb 2012, 01:42 PM
Hello Jocelyn,

Note that the RadRotator control supports also a CarouselButtons rotator type. If the RotatorType property is set to CarouselButtons, then the items are moved by clicking the RadRotator's default navigation buttons located on the left and right side of the control.

Another option to stop the automatic scrolling of the rotator control is to use its client-side method stop(), as demonstrated in the following example:
<telerik:RadRotator ID="RadRotator1" runat="server" Width="810px" ItemWidth="300"
    Height="350px" ItemHeight="220" ScrollDuration="500" FrameDuration="2000"
    RotatorType="Carousel" OnClientLoad="OnClientLoad">
    <ItemTemplate>
        <asp:Image ID="Image1" runat="server" ImageUrl='....' AlternateText="...." />
    </ItemTemplate>
</telerik:RadRotator>
 
<script type="text/javascript">
   function OnClientLoad(sender, args) {
        sender.stop();
   }
</script>

I hope this helps. Feel free to contact us again if you run into more difficulties.

Kind regards,
Slav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Rotator
Asked by
Jocelyn
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or