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

Using FromCode rotator type causes auto-rotation

3 Answers 66 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Mark Ursino
Top achievements
Rank 1
Mark Ursino asked on 09 Dec 2010, 08:19 PM
We're using Telerik.Web.UI 2008.2.826.20 and have a RadRotator on our page to cycle among 20 cartoon images. We're using the FromCode rotator type. Both our ID on the control AND our CssClass are set to "rotCartoons". Below is our JavaScript code:

    Sys.Application.add_load(function(){
    
        jQuery(function($){
            var rotator = $find($(".rotCartoons").attr("id"));
           
            $("a[href=#cartoon-previous]").click(function(e){
                e.preventDefault();
                rotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Right);
               
            });
           
            $("a[href=#cartoon-next]").click(function(e){
                e.preventDefault();
                rotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Left);
            });
        })
    
    });

It basically binds jQuery click handlers to to left and right anchors. On each click, it gets the rotator in JS and calls showNext() in the correct direction. When we load the page nothing happens as expected. Once we hit either the Previous or Next button, showNext() is called in the respective direction and it slides in the next cartoon, then a few seconds later it goes again to the next, etc.. How do we prevent it from auto-rotating to the next cartoon?

Thanks in advance,
Mark

3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 15 Dec 2010, 09:53 AM
Hi Mark,

I used the provided code but unfortunately I was not able to reproduce the described behavior. Could you please check it attached to this thread? If your scenario is different, could you please rework it, open a new support ticket and send it back? I will debug it and do my best to provide a working solution as soon as possible.

Regards,
Fiko
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.
0
Mark Ursino
Top achievements
Rank 1
answered on 15 Dec 2010, 07:15 PM
Hi Fiko,

I tried out your demo and it did not work right for me. I believe what you tested with may not have been the same Telerik version I'm having issues with. I'm using 2008.2.826.20. The first issue I noticed was that you accessed the jQuery object ($) form $telerik. The version I'm using doesn't have $telerik.$ so that was my 1st red flag. I instead added in jQuery to the page using the Google API and tested out your simple demo and the same behavior happens. If this is expected behavior in this version of Telerik I'm fine with that, but I'd just like to know. If there is a code work-around then I'd prefer that.

Thanks,
Mark
0
Fiko
Telerik team
answered on 20 Dec 2010, 12:04 PM
Hello Mark,

This is a fairly outdated version of the control. This is why I strongly recommend you to update to the recent  version. Please note that it is strongly recommended in order to be sure that the control will work with the latest versions (and updates) of all major browsers.

Greetings,
Fiko
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.
Tags
Rotator
Asked by
Mark Ursino
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Mark Ursino
Top achievements
Rank 1
Share this question
or