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

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

2 Answers 63 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Brent Hetland
Top achievements
Rank 1
Brent Hetland asked on 30 Oct 2012, 02:49 PM
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 Answers, 1 is accepted

Sort by
0
Brent Hetland
Top achievements
Rank 1
answered on 30 Oct 2012, 02:58 PM
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.
0
Brent Hetland
Top achievements
Rank 1
answered on 30 Oct 2012, 05:38 PM
I've solved this by adding position: relative to the style of the RadTreeViewContextMenu tag, as follows:

style="z-index:10000 !importantpositionrelative;"
Tags
TreeView
Asked by
Brent Hetland
Top achievements
Rank 1
Answers by
Brent Hetland
Top achievements
Rank 1
Share this question
or