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

RadGrid with ModalPopupExtender

1 Answer 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
brian sullivan
Top achievements
Rank 1
brian sullivan asked on 06 Oct 2009, 03:23 AM
I'm trying to use a RadGrid inside a modal popup created with the AJAX Control Toolkit's ModalPopupExtender control.  However, when I click on the column filter menu provided by the RadGrid, the context menu shows up behind the modal popup.  I've tried adjusting the z-order style of the both the menu and the popup by using CSS classes, but both seem to use inline styles to set their z-indexes.  The popup uses a value of 10000, while the RadGrid filter menu uses a value of 7000.  Is there any way I can set the z-index value the menu uses, so that it shows up above the popup?

1 Answer, 1 is accepted

Sort by
0
brian sullivan
Top achievements
Rank 1
answered on 07 Oct 2009, 01:24 AM
I found a way to get around this problem.  If I mark the z-index style in the CSS class that I apply to the FilterMenu element underneath the RadGrid as "!important", that value (10002 in my case) will take precedence over the inline style that's being applied to the menu.  That looks something like this

<!-- MyPage.aspx --> 
 
<telerik:RadGrid runat="server" ID="RadGrid1"
    <FilterMenu CssClass="filterMenu"></FilterMenu> 
</telerik:RadGrid> 

/* mystyles.css */ 
 
.filterMenu 
    z-index:10002 !important; 
 

Feels a little hackish, but it works.
Tags
Grid
Asked by
brian sullivan
Top achievements
Rank 1
Answers by
brian sullivan
Top achievements
Rank 1
Share this question
or