Hide Menu when any menu item gets clicked

2 posts, 0 answers
  1. Meghna
    Meghna avatar
    37 posts
    Member since:
    Jun 2008

    Posted 19 Nov 2009 Link to this post

    I have requirement where I want to hide menu when user click on any sub menu item.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Nov 2009 Link to this post

    Hello Meghna,

    Attach OnClientItemClicked event to RadMenu in order to hide the menu when an item is clicked.

    JavaScript:
    <script type="text/javascript"
        function OnClientItemClicked(sender, args) { 
            sender.set_visible(false); 
        } 
    </script> 

    -Shinu.
Back to Top