Disable Ratator

4 posts, 0 answers
  1. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 27 Jul 2012 Link to this post

    I am trying to disable ratator but I found when I make it enable=flase than also I was able to click on it!
    Is there is any other property?

    Thanks,
    Shakti
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 01 Aug 2012 Link to this post

    Hello,

    I suppose you want to disable the RadRotator Buttons. Try the following JQuery to achieve your scenario.

    JS:
    <script type="text/javascript">
        $(document).ready(function () {
            $(".rrButton").attr("disabled", true);
            $(".rrButton ").addClass("rrButtonDisabled");
        });
    </script>

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 01 Aug 2012 Link to this post

    Well I was looking solutions for Code Behind!

    Thanks,
    Shakti
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 02 Aug 2012 Link to this post

    Hi Shakti,

    One suggestion is that you can attach the OnClientLoad function from the serverside and disable the RadRotator Buttons inside the clientside event as follows.

    C#:
    RadRotator1.OnClientLoad = "OnClientLoad";

    JS:
    <script type="text/javascript">
        function OnClientLoad(sender,args) {
           $telerik.$(".rrButton").attr("disabled", true);
           $telerik.$(".rrButton ").addClass("rrButtonDisabled");
        }
    </script>

    Hope this helps.

    Regards,
    Princy.
Back to Top