Hi,
I found an example in your documentation that would hide the context menu when you move the mouse out of the context menu. I can't get it to work though... It hides whenever the mouse is moved outside a single item even if it still is within the context menu.
The example I used is as follows:
function OnClientMouseOutHandler(sender, eventArgs)
{
var destinationElement = eventArgs.get_domEvent().rawEvent.toElement || eventArgs.get_domEvent().rawEvent.relatedTarget;
var menuDiv = $get("<%= RadContextMenu1.ClientID %>");
while(destinationElement && destinationElement != menuDiv)
{
destinationElement = destinationElement.parentNode;
}
if (destinationElement == menuDiv)
{
//mouse is within the menu
return;
}
//mouse is out of the menu
sender.hide();
/Janni
I found an example in your documentation that would hide the context menu when you move the mouse out of the context menu. I can't get it to work though... It hides whenever the mouse is moved outside a single item even if it still is within the context menu.
The example I used is as follows:
function OnClientMouseOutHandler(sender, eventArgs)
{
var destinationElement = eventArgs.get_domEvent().rawEvent.toElement || eventArgs.get_domEvent().rawEvent.relatedTarget;
var menuDiv = $get("<%= RadContextMenu1.ClientID %>");
while(destinationElement && destinationElement != menuDiv)
{
destinationElement = destinationElement.parentNode;
}
if (destinationElement == menuDiv)
{
//mouse is within the menu
return;
}
//mouse is out of the menu
sender.hide();
/Janni