This is a migrated thread and some comments may be shown as answers.
Set BannerPath from javascript
1 Answer 8 Views
This is a migrated thread and some comments may be shown as answers.
Bertha
Top achievements
Rank 1
Bertha asked on 22 Jan 2013, 09:53 PM
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

 

 

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 25 Jan 2013, 08:14 AM
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.
Asked by
Bertha
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or