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

MasterPage Menu client disable

3 Answers 106 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Santiago Rial Iglesias
Top achievements
Rank 1
Santiago Rial Iglesias asked on 17 Jun 2008, 06:13 PM
Hi Telerik!

I have a RadMenu inside MasterPage. How can I disable from client side?

Greetings.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Jun 2008, 11:40 AM
Hi,

Go through the following help document link.
Hide and show the menu on the client

Princy.
0
Santiago Rial Iglesias
Top achievements
Rank 1
answered on 18 Jun 2008, 02:17 PM

Hi, this code not works

The RadMenu is inside of MasterPage.

I don't find any example about this in documentation.

Greetings.

Santiago.

0
T. Tsonev
Telerik team
answered on 19 Jun 2008, 01:08 PM
Hello,

Suppose that you have a menu with ID RadMenu1 in the master page, then you can do the following in your content page:

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"
 
    <script type="text/javascript"
        function toggleMenu() 
        { 
            var menu = $find('<%= Master.FindControl("RadMenu1").ClientID %>'); 
            menu.set_enabled(!menu.get_enabled()); 
        } 
    </script> 
 
    <input type="button" value="toggle menu enabled" onclick="javascript:toggleMenu();" /> 
</asp:Content> 
 


Sincerely yours,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Menu
Asked by
Santiago Rial Iglesias
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Santiago Rial Iglesias
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or