This is a migrated thread and some comments may be shown as answers.

RadImageGallery auto play

5 Answers 314 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
An
Top achievements
Rank 1
An asked on 30 Oct 2015, 01:38 PM

Hi,

How do I get RadImageGallery to restart the slideshow again, once it has finishes cycling through the images?

Thanks.

 

An

5 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 03 Nov 2015, 07:45 AM
Hello An,

You can achieve the requested functionality using the playSlideshow method:
Copy Code
Copy Code
Copy Code
Copy Code
   function pageLoad() {
     $find('<%=RadImageGallery1.ClientID%>').playSlideshow();
 }

In addition, you can use the SlideshowSlideDuration property to control the time interval:
http://docs.telerik.com/devtools/aspnet-ajax/controls/imagegallery/functionality/animations#slideshow

And you can use this property to restart the slideshow after it ends:
Copy Code
Copy Code
<telerik:RadImageGallery ... LoopItems="true">

Hope this helps. Please give it a try and let me know about the result.


Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
An
Top achievements
Rank 1
answered on 03 Nov 2015, 12:26 PM

Hello Eyup,

That did it, thank you.  Can I start the RadImageGallery from the Server side, like from the Page_Load method?

 Thanks.

An

0
Viktor Tachev
Telerik team
answered on 06 Nov 2015, 07:30 AM
Hi An,

As the slideshow is performed on the client you need to use client-side logic to start it. There is no server-side property that enables the slideshow to be started automatically.

Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Kofi
Top achievements
Rank 1
answered on 30 May 2016, 11:42 AM

where do i put the javascript function to autostart the slideshow?

i have an imagegallery on a master page.

i want to autoplay the slideshow when the content page loads

0
Viktor Tachev
Telerik team
answered on 31 May 2016, 11:44 AM
Hello Kofi,

You can call the playSlideShow() method in the pageLoad() client-side event handler. It is raised automatically after every full or partial postback.

If you would like additional information reberding pageLoad() you would find the following article interesting.



Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
ImageGallery
Asked by
An
Top achievements
Rank 1
Answers by
Eyup
Telerik team
An
Top achievements
Rank 1
Viktor Tachev
Telerik team
Kofi
Top achievements
Rank 1
Share this question
or