Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Rotator > Rotator Off by '1px' when using showNext()
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Rotator Off by '1px' when using showNext()

Feed from this thread
  • Will avatar

    Posted on Jan 19, 2011 (permalink)

    Telerik version: 2009.3.1314.35 (I have to use this version, the last one that does not require .NET 3.5 SP2.  We cannot install SP2 in my environment).

    I'm trying to use the rotator to cycle through an image with some text along side.  Everything works great when auto starting but when I click my buttons to manually cycle them. it looks like 1px of the image on the next/previous frame is showing.  If I "re-start" the rotator (with .resume()) 1px issue goes away.

    JS functions I'm using:

    function CarouselBack(oRotator) {
                CarouselPause(oRotator)
                oRotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Right);
    }
      
    function CarouselForward(oRotator) {
                CarouselPause(oRotator)
                oRotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Left)
    }

    I've triple checked that the height and widths are in sync:

     .colleft { width: 275px; height:175px; margin: 0 0 0 0; padding: 0 0 0 0; float:left;}
     .colright { width: 375px; height:175px; padding: 10 0 0 10; margin: 0; float:left;}

    Two <div> tags with the above classes respectively
    With the rotator and rotator item is set to 650px width and Height of 175px

    The only reason I caught it was when I stuck a black image into the container and the 1px line showed up. After going through my code exhaustively and the fact that if I don't manually "rotate" them myself it works fine I'm wondering if perhaps a known issue?

  • Tsvetie Tsvetie admin's avatar

    Posted on Jan 24, 2011 (permalink)

    Hi Will,
    I cannot tell you, whether there is a problem in the showNext method in the particular version that you use that could be causing the described result. In case you send me a running test project that demonstrates the problem, I can check whether the problem is in the version you use and whether there is a workaround that you can use.

    Kind regards,
    Tsvetie
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Rotator > Rotator Off by '1px' when using showNext()