Disabling up/down arrows in Rotator

2 posts, 0 answers
  1. Uday
    Uday avatar
    10 posts
    Member since:
    Dec 2010

    Posted 26 Apr 2011 Link to this post


    I have set the height of the rotator and this would accommodate 3 items. If the list that I am binding contains <= 3 items then the up and down arrows should be disabled. How can I achieve this.

  2. Niko
    Niko avatar
    404 posts

    Posted 26 Apr 2011 Link to this post

    Hello Uday,

    The best solution would be to attach to the OnClientLoad event of the RadRotator and check the length of the items collection. If the length is less than, in your case, 3, then hide the buttons. Hiding the buttons is easily done through the jQuery library. Here is an example implementation of the OnClientLoad handler:
    function hideUselessButtons(rotator, args)
        if(rotator.get_items().length < 3)

    Hope this helps.

    All the best,
    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