Best practice for hiding context menu in other frames

3 posts, 0 answers
  1. Anders Mad.
    Anders Mad. avatar
    42 posts
    Member since:
    May 2006

    Posted 09 Oct 2008 Link to this post

    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. Blaize
    Blaize avatar
    88 posts
    Member since:
    Oct 2006

    Posted 10 Oct 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Anders Mad.
    Anders Mad. avatar
    42 posts
    Member since:
    May 2006

    Posted 10 Oct 2008 Link to this post

    Thanks! Your right.. I didn’t see the static hideAll function.

    window.parent.Telerik.Web.UI.RadContextMenu.hideAll();
Back to Top