Set BannerPath from javascript

2 posts, 0 answers
  1. Bertha
    Bertha avatar
    53 posts
    Member since:
    Aug 2012

    Posted 22 Jan 2013 Link to this post

    How can I set the BannersPath by using javascript?
    var r1 = $find("<%= RadRotator1.ClientID %>");


    if (r1 != null) r1.BannersPath = "../../Photos/" + Homes[homeindex].replace(" ", "");

    :RadRotator ID="RadRotator1" runat="server" Width="370px" Height="219px" RotatorType="SlideShowButtons" BannersPath="~/Photos/Bayview"


    ItemHeight="219px" ItemWidth="330px" FrameDuration="3000" ScrollDirection="Left, Right">




  2. Slav
    Slav avatar
    1351 posts

    Posted 25 Jan 2013 Link to this post

    Hello Bertha,

    I am afraid that the banners path cannot be changed on the client. If you need to set a new path dynamically, I would suggest using an AJAX request to update the value of the property BannersPath.

    Feel free to contact us again if you run into more difficulties.

    Kind regards,
    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. DevCraft R3 2016 release webinar banner
Back to Top