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>

RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences