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

Z-Index Issue with Context Menu Windows in a RadWindow

1 Answer 63 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Rich Reuter
Top achievements
Rank 1
Rich Reuter asked on 15 May 2012, 08:52 PM
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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vasil
Telerik team
answered on 19 May 2012, 06:46 AM
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,
Vasil
the Telerik team

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

Tags
RichTextBox
Asked by
Rich Reuter
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or