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

Problem of default context menu

1 Answer 40 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
deng yingxin
Top achievements
Rank 1
deng yingxin asked on 04 May 2011, 11:20 AM
I have set default context menu for the RadRichTextBox. It works well.
But after setting RadContextMenu for the RadRichTextBox's parent control, when I right click, two menus popup.
How to prevent the context menu of parent control

1 Answer, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 10 May 2011, 09:22 AM
Hi deng yingxin,

You are right, there is a bug in RadRichTextBox that causes appearing of both parent and self context menus. This should be fixed in the next version (2011 Q2). As a temporary workaround, you could close the parent menu just after opening the RadRichTextBox context menu:

((ContextMenu)this.radRichTextBox1.ContextMenu).Opened += (s, a) =>
{
    RadContextMenu.GetContextMenu(this.radRichTextBox1.Parent as FrameworkElement).IsOpen = false;
};
We awarded you some Telerik points in appreciation for this bug report.

All the best,
Boby
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
Tags
RichTextBox
Asked by
deng yingxin
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or