RadTreeViewContextMenu in a TreeView within a RadMenu - Context Menu doesn't display in Chrome

3 posts, 0 answers
  1. Brent Hetland
    Brent Hetland avatar
    61 posts
    Member since:
    Aug 2009

    Posted 30 Oct 2012 Link to this post

    Hi,

    I am using 2012.3.1016.35 of the ASP.NET for AJAX controls.

    I have a RadMenu containing a RadMenuItem, which contains a user control that contains a RadTreeView.  The RadTreeView uses a RadTreeViewContextMenu on the nodes.

    In IE and Firefox, the Context Menu displays as expected, AFTER I set the z-index of the RadTreeViewContextMenu as follows:  

    style="z-index:40000"

    PROBLEM:
    The context menu does NOT display in the latest version of Chrome (version 22.0.1229.94, but I assume it is also a problem in earlier versions).

    This is a huge deal for us.  I've seen one other forum post on this, where Telerik simply says it "looks like a documented bug in Chrome".

    MORE INFO:
    I use the exact same type of treeview and context menu in two other places of our web app, but in those places I do NOT nest the treeview in a radmenu, and in those cases, the context menu DOES DISPLAY in Chrome.

    Can you help please?  Is there anything I can try, to get this to work?

    Thanks,
    Brent
  2. Brent Hetland
    Brent Hetland avatar
    61 posts
    Member since:
    Aug 2009

    Posted 30 Oct 2012 Link to this post

    FYI:  Just wanted to confirm that when I move the TreeView control out of the RadMenu, the problem doesn't occur.

    However, I don't want that to be the solution to the problem.  I'd like to display the TreeView in the RadMenu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brent Hetland
    Brent Hetland avatar
    61 posts
    Member since:
    Aug 2009

    Posted 30 Oct 2012 Link to this post

    I've solved this by adding position: relative to the style of the RadTreeViewContextMenu tag, as follows:

    style="z-index:10000 !importantpositionrelative;"
    
Back to Top