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

[Solved] Master detail grid with multiple menus overlap z-index problem

1 Answer 34 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rob
Top achievements
Rank 1
Rob asked on 22 Nov 2011, 05:45 PM
Hi all,

I am having a problem with multiple MVC Telerik Menus overlapping within a MVC Telerik Grid. In the screenshots, you can see that I am using a detail in the view which is another MVC Telerik Grid and it too has a column that uses a MVC Telerik Menu. What's happening is the menu in the detail view is having an overlap problem with the top level menu items in the parent Telerik Grid. I included both a screenshot of the overlap issue as well as what the menus look like when they are closed, and you can see that the two rows that have "Cancelled and "Placed" top level menus are bleeding through the detail menu when that menu is expanded.

I've tried to see about adding a class that increases z-index to 5000 to all menu items when a menu item opens and then removing that class from all menu items in the close event, but so far that hasn't been successful.

Is there any way to address this?

Note that there is no overlap when the parent row's menu overlaps a detail row's menu. It only happens when a detail row's menu opens on top of the parent row's menu (see menu fine no overlap screenshot).

Thanks,

Rob

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 24 Nov 2011, 03:33 PM
Hi Rob,

I managed to reproduce the overlapping of menus in hierarchical Grid scenario. At least on my side, the problem seems to occur only in older versions of Internet Explorer. I managed to fix this by raising the menu`s parent row  "z-index" when it opens and then returning it back to normal when it closes. For example :

function onOpen() {
   $(this).parents('.t-detail-row').css('z-index', +1000);
    }
function onClose() {
    $(this).parents('.t-detail-row').css('z-index', 'auto');
}

I hope this helps. if not, please send a sample project so we can check it.

Kind regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Menu
Asked by
Rob
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or