Rotator not starting

8 posts, 0 answers
  1. Dan
    Dan avatar
    40 posts
    Member since:
    Mar 2009

    Posted 30 Apr 2009 Link to this post

    I have a rotator control on my page set to Slideshow.  I have tried opening it in several different browsers (IE, Firefox for Windows, Safari for Windows, Firefox for Mac, Safari for Mac).  The first time that I go to my site with a new browser the rotator does not start.  If I refresh the page then the rotator starts and it seems to be fine after that.  I can close the browser and go back to the site and it is still working.

    Is there something that I can code to ensure that the rotator always starts when the page is first loaded?  I'm concerned that users going to my site for the first time may not see the rotating images.

    Thanks.
    Dan
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 01 May 2009 Link to this post

    Hi Dan,

    You are the first that reports that behavior. Could you please provide more information about your exact setup? Also, could you please test the control in action on this demo page and let us know whether the same issue appears there too?

    What I recommend is to open a new support ticket and send us a simple project where we can reproduce the issue. Once we have a better view over your exact setup, we will do our best to provide a solution.



    Greetings,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dan
    Dan avatar
    40 posts
    Member since:
    Mar 2009

    Posted 01 May 2009 Link to this post

    Can you try opening my demo site and see what happens for you?  http://ausws.quinix.com

    The rotator is the box right at the top in the middle section.  Please try it in a variety of browsers for both PC and Mac.  There is nothing in the code behind so you should be able to see the javascript functions that I am using to control the rotation if you view the source (just do a search for the word rotator and it will take you to the right place).

    Thanks.
    Dan
  5. Dan
    Dan avatar
    40 posts
    Member since:
    Mar 2009

    Posted 01 May 2009 Link to this post

    BTW, here is my definition of the rotator from my aspx page:
    <telerik:RadRotator ID="RadRotator1" runat="server" DataSourceID="dsRotator" FrameDuration="3000" 
        RotatorType="SlideShow" OnClientMouseOut="mouseOut_handler" OnClientMouseOver="mouseOver_handler" 
        PauseOnMouseOver="false">  
        <ItemTemplate> 
            <href="<%# IIf(IsDBNull(Eval("NavigateUrl")), "javascript:void(0);", Eval("NavigateUrl")) %>"  
                target="<%# Eval("Target") %>">  
                <img src="<%# Eval("ImageUrl") %>" alt="<%# Eval("AlternateText") %>" border="0" /></a>  
        </ItemTemplate> 
        <SlideShowAnimation Type="Fade" /> 
    </telerik:RadRotator> 
     

     


    and the navigation links:

     

    <id="lnkPrevious" href="javascript:void(0);" class="rotator" title="Previous" onclick="Scroll(Telerik.Web.UI.RotatorScrollDirection.Left);">« prev</a> 
    <id="lnkPause" href="javascript:void(0);" class="rotator" title="Pause" onclick="Pause();">pause</a><a id="lnkResume" href="javascript:void(0);" class="rotator" title="Resume" style="display: none" onclick="Resume();">resume</a> 
    <id="lnkNext" href="javascript:void(0);" class="rotator" title="Next" onclick="Scroll(Telerik.Web.UI.RotatorScrollDirection.Right);">next »</a> 
     
     
     

  6. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 05 May 2009 Link to this post

    Hi Dan,

    Thank you for the link. The RadRotator control is indeed rendered on the page and it should work, but I check the page by using the W3C Validator and it reports several problems in the rendered code. This may be a reason for the behavior that you experience.
    In this case we need to examine your setup and we need a runnable project, that reproduce that behavior. You can send it to us by opening a new support ticket, where you will be able attach files. 

    Sincerely yours,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Nick
    Nick avatar
    10 posts
    Member since:
    Mar 2009

    Posted 12 May 2009 Link to this post

    Hi

    I had this problem too - the support guys have sorted it for me. It turns out that you MUST set the ItemHeight and ItemWidth properties on the Rotator otherwise the browser does not know how big the images will be the first time they load. The second time they are cached so it knows. Easy fix which could do with better documentation.

    Nick.
  8. Dan
    Dan avatar
    40 posts
    Member since:
    Mar 2009

    Posted 12 May 2009 Link to this post

    Thanks very much, Nick.  I'll give that a try.
    Dan
  9. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 13 May 2009 Link to this post

    Hello Dan,

    The Width, ItemWidth, Height, ItemHeight (in pixels) properties are important and you need to specify them in order to make the RadRotator control works properly.

    Kind regards,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017