MasterPage Menu client disable

4 posts, 0 answers
  1. Santiago Rial Iglesias
    Santiago Rial Iglesias avatar
    12 posts
    Member since:
    Apr 2008

    Posted 17 Jun 2008 Link to this post

    Hi Telerik!

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

    Greetings.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Jun 2008 Link to this post

    Hi,

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

    Princy.
  3. Santiago Rial Iglesias
    Santiago Rial Iglesias avatar
    12 posts
    Member since:
    Apr 2008

    Posted 18 Jun 2008 Link to this post

    Hi, this code not works

    The RadMenu is inside of MasterPage.

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

    Greetings.

    Santiago.

  4. T. Tsonev
    Admin
    T. Tsonev avatar
    2831 posts

    Posted 19 Jun 2008 Link to this post

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