TelerikDeveloper.com

TelerikDeveloper.com

sgray128 4/16/2015 12:13:09 PM

Telerik - z-order for the RadEditor FormatCodeBlock window

Telerik - z-order for the RadEditor FormatCodeBlock window

When I drop a RadEditor onto a form, the FormatCodeBlock window is popping up behind the RadMenu. This code snippet will prevent that



<telerik:RadEditor ID="RadEditor1" runat="server" OnClientCommandExecuted="OnClientCommandExecuted">
 </telerik:RadEditor>
    
<script type="text/javascript">
function OnClientCommandExecuted(editor, args)
{
   var commandName = args.get_commandName();
   if (commandName == "ImageManager")
   {
     var wnd = editor.get_dialogOpener()._dialogContainers[commandName];//get reference to the RadWindow object
     wnd.get_element().style.zIndex = "9999"
   }
   if (commandName == "FormatCodeBlock")
   {
     var wnd = editor.get_dialogOpener()._dialogContainers[commandName];//get reference to the RadWindow object
     wnd.get_element().style.zIndex = "9999"
   }
}
 
</script>