Hide menu

rated by 0 users
This post has 1 Reply | 2 Followers

Not Ranked
Points 20
parivellividyasagar Posted: 07-23-2008 8:44 AM

escape  button click hide righ-click(context)menu

  • Filed under:
  • | Post Points: 20
Top 25 Contributor
Points 6,644
Infragistics Employee

 

Hello,

You can use event onkeydown="HideMenu" of body tag and use javascript code below to hide menu.

<body onkeydown="HideMenu">

    <script language="javascript">

         function HideMenu(treeId,button) {

            if(button == 27){

                var menu= igmenu_getMenuById("<%= UltraWebMenu1.ClientID %>").dismiss(); ;

            }

         }

      

    </script>

Also you can take a look at that link

http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=10083

Hope this helps.

 

Best Regards,

Ivan Baev

The Infragistics ASP.NET Team

  • | Post Points: 5
Page 1 of 1 (2 items) | RSS

Forum Statistics

19,646 users have contributed to 78,509 threads and 87,118 posts.

In the past week, we've had 1,454 new users, adding to our total of 423,260 registered users!

In the past 24 hours, we have 4 new thread(s), 6 new post(s), and

In the past 3 days, the most popular thread for everyone has been "UltraGrid - ConditionAppearanceRow". The post with the most views is "Re: A gripe about support and sample projects". The most replies were made to "A gripe about support and sample projects".

Please welcome our newest member RoyAlmon.