RadImageGallery auto play

6 posts, 0 answers
  1. An
    An avatar
    23 posts
    Member since:
    Aug 2013

    Posted 30 Oct 2015 Link to this post

    Hi,

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

    Thanks.

     

    An

  2. Eyup
    Admin
    Eyup avatar
    3007 posts

    Posted 03 Nov 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. An
    An avatar
    23 posts
    Member since:
    Aug 2013

    Posted 03 Nov 2015 in reply to Eyup Link to this post

    Hello Eyup,

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

     Thanks.

    An

  5. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 06 Nov 2015 Link to this post

    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
  6. Kofi
    Kofi avatar
    1 posts
    Member since:
    May 2016

    Posted 30 May Link to this post

    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

  7. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 31 May Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017