Set RadRotator ScrollDirection Client side

2 posts, 0 answers
  1. divya sahu
    divya sahu avatar
    16 posts
    Member since:
    Oct 2009

    Posted 04 Jul 2011 Link to this post


    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.


  2. Slav
    Slav avatar
    1359 posts

    Posted 05 Jul 2011 Link to this post

    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.

    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!

Back to Top