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

RadMenu still active with a modal RadWindow

6 Answers 255 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 2
Jeff asked on 29 May 2008, 04:28 PM

Hi,
  I have an ASPX page which has a RadMenu and a RadWindowManager with a window defined in it as follows:

<telerik:RadWindowManager ID="_MasterRadWindowManager1" runat="server" ReloadOnShow="true" DestroyOnClose="false">  
    <Windows> 
        <telerik:RadWindow runat="server" NavigateUrl="~/ModalPage.aspx" Modal="true" 
            ID="_NewsWindow" Width="800" Height="500" Behavior="Close" DestroyOnClose="false" 
            ReloadOnShow="true" VisibleTitlebar="true" VisibleStatusbar="true" VisibleOnPageLoad="true" /> 
    </Windows> 
</telerik:RadWindowManager> 
 
<telerik:RadMenu ID="RadMenu3" runat="server">  
    <Items> 
        <telerik:RadMenuItem runat="server" Text="MenuItem1" NavigateUrl="~/MenuItem1.aspx" style="z-index:-1;" /> 
        <telerik:RadMenuItem runat="server" Text="MenuItem2" NavigateUrl="~/MenuItem2.aspx" style="z-index:-1;"/>  
        <telerik:RadMenuItem runat="server" Text="MenuItem3" NavigateUrl="~/MenuItem3.aspx" style="z-index:-1;"/>  
    </Items> 
</telerik:RadMenu> 
 

When the page loads, the window pops up correctly, however the menu items are still clikable.  I added a <a> and <div onclick="..."> to the page and both of these are disabled as i would expect, but the RadMenuItems are not disabled.

Any help would be much appreciated!
Thanks!

6 Answers, 1 is accepted

Sort by
0
Jeff
Top achievements
Rank 2
answered on 29 May 2008, 04:31 PM
Almost forgot, I am running on the new RadControls for ASP.Net AJAX.  The Telerik.Web.UI.dll version is: 2008.1.515.35
0
Mark
Top achievements
Rank 1
answered on 30 May 2008, 05:02 AM
I have exactly the same problem finding that the menu displays over the radwindow as well. 
0
David
Top achievements
Rank 2
answered on 30 May 2008, 07:19 PM
I too am seeing this behavior.  Initially came to the forums a few moments ago about the menu appearing over the window (or the window under the menu - whichever way makes sense to you )

And now I see that the solution is to add the following to the style property on the RadWindowManager:

    z-index:90000

-David
0
Svetlina Anati
Telerik team
answered on 02 Jun 2008, 11:35 AM
Hi guys,

As you have found out yourselves the problem is caused by the fact that the RadMenu's z-index is bigger than the one of the RadWindow. You can use two approaches to set the proper z-indexes:

  1. Set a lower z-index to the RadMenu.
  2. Set a bigger z-index to the RadWindow but this will work only in case you are using the RadWindowManager control.

For your convenience I am attaching two sample projects which demonstrate the above explained approaches.

Please, note that you can set the z-index by using the style attribute only in case you are using the Q1 2008 Release or later.

You can find more information about controlling the z-indexes here. I also recommend to examine this  new RadWindow's KB article.

Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Eric
Top achievements
Rank 1
answered on 17 Oct 2008, 02:39 PM
Hi,

I changed the z-index of radwindowmanager to 7001 as you suggested in the example. After the change the menu is not active anymore but now some of the menu items are not displayed (only the 1. menu item is displayed of 7 menu items) when I open the page (when the page is first displayed none of the windows are visible). If I go over the 1. menu item with the mouse pointer the other menu items become visible.

Thank you...

0
Georgi Tunev
Telerik team
answered on 20 Oct 2008, 12:45 PM
Hi Eric,

I am not quite sure what your setup is, but if you open a support ticket and send me a small sample project where I can examine it, I will do my best to help.


Sincerely yours,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Jeff
Top achievements
Rank 2
Answers by
Jeff
Top achievements
Rank 2
Mark
Top achievements
Rank 1
David
Top achievements
Rank 2
Svetlina Anati
Telerik team
Eric
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or