Set BannerPath from javascript

2 posts, 0 answers
  1. Bertha
    Bertha avatar
    56 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(" ", "");

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

     

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

    Thanks

     

     

  2. Slav
    Admin
    Slav avatar
    1356 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,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top