startAutoPlay isn't working

4 posts, 0 answers
  1. Dwertz
    Dwertz avatar
    3 posts
    Member since:
    Jun 2006

    Posted 17 Dec 2008 Link to this post

    I'm using the Q3 Rotator to make a slideshow. It has pause/play/left/right buttons. The RotatorType is set to FromCode. The left and right buttons are working as expected. The Play button doesn't want to work, though. Using the startAutoPlay() method advances a single frame, but doesn't start automatic advance. The resume() method does the same thing. Is there something I'm doing wrong?

    Incidentally, if I set the RotatorType to "AutomaticAdvance", the pause/left/right buttons work as expected. The play button behaves the same way, though, using either the resume() or startAutoPlay() method - it only advances one frame.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 20 Dec 2008 Link to this post

    Hi Dwertz,

    When the property RotatorType is set to "FromCode", the behavior of the control is fully controlled by code, including the AutoPlay functionality - that is why it is not working as expected in your scenario. 

    If you want to keep this setting, but still have the AutoPlay feature, you must change the rotator type by using its client-side API and then to call startAutoPlay() method:


    function StartPlay() 
    var oRotator = GetRadRotator(); 
    oRotator.set_rotatorType(Telerik.Web.UI.RotatorType.AutomaticAdvance); 
    oRotator.startAutoPlay(); 
    return false
    }  

    I hope this helps.

    Regards,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dwertz
    Dwertz avatar
    3 posts
    Member since:
    Jun 2006

    Posted 22 Dec 2008 Link to this post

    Thank you, that works for getting the AutoPlay started initially. However, now I find that I can't get the automatic rotation started after using the .pause() method. I've tried the resume() method, both by itself and in combination with the code above. What is the correct way to resume automatic rotation from the paused state?
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 23 Dec 2008 Link to this post

    Hi Dwertz,

    When the rotator is stoped (paused) programmatically and it is set to AutomaticAdvance mode you can resume rotation by calling start() instead startAutoPlay() function of RadRotator's object e.g. :

    function StartPlay() 
        var oRotator = GetRadRotator(); 
        if (oRotator.get_rotatorType() == Telerik.Web.UI.RotatorType.AutomaticAdvance) 
        { 
            oRotator.start(); 
        } 
        else 
        { 
            oRotator.set_rotatorType(Telerik.Web.UI.RotatorType.AutomaticAdvance); 
            oRotator.startAutoPlay(); 
        } 
        return false


    Greetings,
    Fiko
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top