Z-Index Issue with Context Menu Windows in a RadWindow

2 posts, 1 answers
  1. Rich Reuter
    Rich Reuter avatar
    16 posts
    Member since:
    Aug 2012

    Posted 15 May 2012 Link to this post

    I've got an issue with the window Z-Index of the windows that are spawned by the context menu within the RadRichTextBox. I've got a standard ribbon/editor configuration - similar to what's on the demo - that's inside a RadWindow. When I attempt to right-click in the editor and use any of the commands that show dialogs for Font, Table Properties, Hyperlink, etc., the window appears beneath the current RadWindow. As you can see in the attached image, the window is a modal that's spawned behind the current window.

    However, when I invoke those commands from the toolbar (Hyperlink, Table Properties, etc.), it works fine. The window pops up in front.

    Apart from waiting for a fix in a new version, is there any way to fix this on the current build (SL5 2012.1.215.1050)? Are there events when the windows are spawned that would allow me to touch the spawned windows?  Are there properties that can be set to ensure that the window Z-Index is honored?
  2. Answer
    Vasil avatar
    124 posts

    Posted 19 May 2012 Link to this post

    Hello Rich,

    This problem is already fixed in 2012 Q1 SP1 version of the controls. As  workaround for your current version, you can subscribe to RadRichTextBox.CommandExecuted event and set RadWindow.IsTopmost property to true for the called dialog. For example:

    this.editor.CommandExecuted += (s, e) =>
        if (e.Command is ShowFontPropertiesDialogCommand)
            RadWindow fontPropertiesDialog = (RadWindow)this.editor.FontPropertiesDialog;
            fontPropertiesDialog.IsTopmost = true;

    I hope this helps. Don't hesitate to contact us if you have other questions.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top