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

How to close RadContextMenu on MouseDown

1 Answer 171 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Karthikeyan
Top achievements
Rank 1
Karthikeyan asked on 16 Dec 2008, 07:03 AM

To close the context menu (to make it disapper without selecting any item) we need to click (mousekeypress[mouseDown and mouseup])  on other areas of the page. Whether it is possible to close the context menu during mouse down event itself?

Thanks & Regards,

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 16 Dec 2008, 02:19 PM
Hi Karthikeyan,

I have one suggestion to achieve the functionality, you can try to hide the menu on the onmousedown client side event as shown below,
I have tried with calling the javascript from the body onmousedown<body onmousedown="Hide()">

 

function Hide()  
{  
   var menu = $find("<%=RadContextMenu1.ClientID %>");     
   menu.hide();  


Hope this give you some clue :)

Thanks,
Princy.
Tags
Menu
Asked by
Karthikeyan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or