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

Set RadRotator ScrollDirection Client side

1 Answer 76 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
divya sahu
Top achievements
Rank 1
divya sahu asked on 04 Jul 2011, 11:16 AM
Hi,

I am using Telerik RadRotator version 2009.3.1208.20.
I am using ScrollDirection property in user control like below code

<

 

telerik:RadRotator PauseOnMouseOver="false" ScrollDirection="Left"

 

 

ID="BannerRotator" runat="server" OnItemDataBound="BannerRotator_ItemDataBound"

 

 

OnClientLoad="onRotatorLoadHandler" >

 


but i want to set rotator's ScrollDirection inside javascript function client side.

Please provide solution for that.I have checked lot of forum post but did not get any proper example to set it.

Thanks,

Divya

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 05 Jul 2011, 04:52 PM
Hello Divya,

Modifying the scroll direction of RadRotator cannot be achieved with client-side script, because changing it requires many calculations and settings to be applied, which can only be done on the server.

Nevertheless you may dynamically change it through AJAX. In the attached sample page you can examine implementation of your scenario, using ASP Button to set new scroll direction server-side and RadAjaxManager to AJAX-enable the change.

On a side note - I would recommend updating RadControls for ASP.NET AJAX to benefit from the improvements in the newer versions as well as to take advantage of the new features.

Regards,
Slav
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Rotator
Asked by
divya sahu
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or