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

z-index of custom dialog in editor

4 Answers 186 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Amy
Top achievements
Rank 1
Amy asked on 18 Aug 2010, 05:37 PM
How can I set the z-index for a custom dialog in the Editor? 

We have a web page with a RadEditor placed inside a RadPane.  A custom dialog has been added to the Editor which loads a java applet.  The problem is when clicking the button to launch the applet, it is appearing behind the RadMenu control on the web page.

I would like to set the z-index of the custom dialog to be higher than the RadMenu.  I tried the suggestion in the following link, but am not having any success... http://www.telerik.com/community/forums/aspnet-ajax/editor/z-index-of-image-manager.aspx

Here is the call for showing the custom dialog...
editor.showExternalDialog
(
  '/TestDevelopment/Controls/EquationEditorStyle.aspx',
  argument,
  620,
  420,
  myCallbackFunction,
  null,
  'Equation Editor',
  true,
  Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,
  false,
  true
);

Any suggestions would be greatly appreciated!  Thanks!!

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Aug 2010, 04:20 PM
Hello Amy,

I was able to fix the z-index problem using the following CSS class:

<style type="text/css">
    .RadWindow.RadWindow_Default.rwNormalWindow.rwTransparentWindow
    {
        z-index: 20000 !important;
    }
</style>


Best wishes,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Amy
Top achievements
Rank 1
answered on 19 Aug 2010, 05:31 PM
Hi Rumen,

I added the code snippet you provided to the aspx page containing the Editor, but am still experiencing the same issue. Here's the code where the editor is defined...
<telerik:RadEditor ID="RadEditor1" runat="server" ToolsFile="~/Content/NoTools.xml" EditModes="Preview" Skin="tds" EnableEmbeddedSkins="false" Height="780" Width="670" OnClientLoad="OnClientLoad" ContentAreaCssFile="~/Content/jam2/EditorContent.css">
<CssFiles>
  <telerik:EditorCssFile Value="ExternalCssFile1.css" />
</CssFiles>
<Content>
</Content>
</telerik:RadEditor>

Note, I did change the snippet of code you provided to...
.radwindow.radwindow_tds.normalwindow.transparentwindow
{
 z-index: 20000  !important;
}
</style>
as there is a skin defined for the Editor called 'tds'.

Thank you for your help looking into this!
0
Amy
Top achievements
Rank 1
answered on 19 Aug 2010, 08:53 PM
The issue has been resolved.  I added the following in the RadEditor declaration and now the custom dialog appears on top of everything else...

ToolbarMode="ShowOnFocus"

Thank you again though for your time and help!!
0
Alejandro
Top achievements
Rank 1
answered on 11 Feb 2016, 05:44 PM

Lot of thanks for the css class!

Tags
Editor
Asked by
Amy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Amy
Top achievements
Rank 1
Alejandro
Top achievements
Rank 1
Share this question
or