5 Answers, 1 is accepted
0
Hello Julie,
You can turn on the slideshow functionality when the page loads by calling playSlideshow() method as demonstrated below:
Regards,
Pavlina
Telerik
You can turn on the slideshow functionality when the page loads by calling playSlideshow() method as demonstrated below:
<script type=
"text/javascript"
>
function
pageLoad() {
$find(
'<%=RadImageGallery1.ClientID%>'
).playSlideshow();
}
</script>
Regards,
Pavlina
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0

Voodoo
Top achievements
Rank 1
answered on 10 Nov 2014, 08:49 PM
Hi, using the method play slide show in JavaScript gives me
an error “Error: Unable to get property
'playSlideshow' of undefined or null reference” but it does work, weird.
Do you know how to fix this?
-Thank you
<asp:PlaceHolder runat="server">
<script type="text/javascript">
function pageLoad() {
var imageGallery = $find('<% = RadImageGallery1.ClientID %>');
imageGallery.playSlideshow();
}
</script>
</asp:PlaceHolder>
an error “Error: Unable to get property
'playSlideshow' of undefined or null reference” but it does work, weird.
Do you know how to fix this?
-Thank you
<asp:PlaceHolder runat="server">
<script type="text/javascript">
function pageLoad() {
var imageGallery = $find('<% = RadImageGallery1.ClientID %>');
imageGallery.playSlideshow();
}
</script>
</asp:PlaceHolder>
0
Hi,
The code is working without errors on my end as you can see from the attached project. Give it a try and let me know what is the difference in your case.
Regards,
Pavlina
Telerik
The code is working without errors on my end as you can see from the attached project. Give it a try and let me know what is the difference in your case.
Regards,
Pavlina
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0

WEBSRFR
Top achievements
Rank 1
answered on 05 Jan 2015, 06:18 PM
Thank you though how would this work if the slideshow controls are dynamically generated by the page? Would the JavaScript code also then need to be dynamically created and how could the JavaScript code start auto playing more than one Image Gallery Slideshow?
I feel the auto play property should really be one of the options when configuring the slideshow as it is basic functionality for a slideshow to auto play.
I feel the auto play property should really be one of the options when configuring the slideshow as it is basic functionality for a slideshow to auto play.
0
Hi,
Yes, it will work if the slideshow controls are dynamically generated.
In case you have more than one RadImageGallery control on the page and you need to start slideshow for all of the components, you should call the method for each of them.
Telerik
Yes, it will work if the slideshow controls are dynamically generated.
In case you have more than one RadImageGallery control on the page and you need to start slideshow for all of the components, you should call the method for each of them.
Regards,
Pavlina Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.