My site has the need to close a menu if the mouse leaves the window (its very close to the left edge, so its easily left open).
As we have multiple menu's on our page, there is the unlikely possibility that more tha none could be left open, so I really wanted to use a jQuery selector to find all menu controls, and fire its close() method when the mouse leaves the window.
I got to this :
$telerik.$(document).mouseleave(
function () {
$('.RadMenu').close();
}
);
However, the $('.RadMenu').close(); doesn't work - erroring that close() isn't supported. if I go through the results from $('.RadMenu'), they do seem to be the correct elements being returned (HTMLDiv objects).
Can anyone help?
Thanks,
Andrew