Problem of default context menu

2 posts, 0 answers
  1. deng yingxin
    deng yingxin avatar
    2 posts
    Member since:
    Dec 2009

    Posted 04 May 2011 Link to this post

    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
  2. Boby
    Admin
    Boby avatar
    763 posts

    Posted 10 May 2011 Link to this post

    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
Back to Top