Using FromCode rotator type causes auto-rotation

4 posts, 0 answers
  1. Mark Ursino
    Mark Ursino avatar
    4 posts
    Member since:
    Feb 2010

    Posted 09 Dec 2010 Link to this post

    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
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 15 Dec 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mark Ursino
    Mark Ursino avatar
    4 posts
    Member since:
    Feb 2010

    Posted 15 Dec 2010 Link to this post

    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
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 20 Dec 2010 Link to this post

    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.
Back to Top