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

Best practice for hiding context menu in other frames

2 Answers 31 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Anders Mad.
Top achievements
Rank 2
Anders Mad. asked on 09 Oct 2008, 07:50 PM
Hi,

Is there any recommended best practice/sample for hiding a context menu in another frame?

Senario: A page with a context menu has an iframe in it - which also has a context menu. Right click on the iframe (show the context menu) and left click outside the frame does not hide the menu, as it would do on left click inside the menu. And vice versa.

Thanks

2 Answers, 1 is accepted

Sort by
0
Blaize
Top achievements
Rank 1
answered on 10 Oct 2008, 10:34 AM
I don't think there is a best practice for that. You should attach eventhandlers to the click event of both the documents and call a routine there to hide all the context menus in the other document. I think there was a hideAll() method somewhere...

Cheers,
Blaize
0
Anders Mad.
Top achievements
Rank 2
answered on 10 Oct 2008, 10:40 AM
Thanks! Your right.. I didn’t see the static hideAll function.

window.parent.Telerik.Web.UI.RadContextMenu.hideAll();
Tags
Menu
Asked by
Anders Mad.
Top achievements
Rank 2
Answers by
Blaize
Top achievements
Rank 1
Anders Mad.
Top achievements
Rank 2
Share this question
or