Edit this page

Start Slideshow automatically

There are occasions when you would like to start a slideshow in RadImageGallery as soon as the page is loaded. This feature can be enabled with just one line of JavaScript. You need to handle the client-side pageLoad() method and call playSlideshow() for the ImageGallery control.

function pageLoad() {
    $find("<%= RadImageGallery1.ClientID %>").playSlideshow();
<telerik:RadImageGallery RenderMode="Lightweight" runat="server" ID="RadImageGallery1" ImagesFolderPath="~/Images">

In addition you can also enable looping for the items. This way the slideshow will start over after the last image is displayed. For that you need to set the LoopItems property to true.

See Also

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article