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

Disable Ratator

3 Answers 65 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Shakti SIngh Dulawat
Top achievements
Rank 1
Shakti SIngh Dulawat asked on 27 Jul 2012, 07:29 PM
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

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 01 Aug 2012, 05:07 AM
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.
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 01 Aug 2012, 05:27 PM
Well I was looking solutions for Code Behind!

Thanks,
Shakti
0
Princy
Top achievements
Rank 2
answered on 02 Aug 2012, 05:12 AM
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.
Tags
Rotator
Asked by
Shakti SIngh Dulawat
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Shakti SIngh Dulawat
Top achievements
Rank 1
Share this question
or