Disable SpellChecking Pop Up.

2 posts, 1 answers
  1. Steve
    Steve avatar
    7 posts
    Member since:
    Sep 2011

    Posted 30 Apr 2012 Link to this post


    I have a requirement where i need spellchecking for radrichtextbox.
    I mean just only the suggestions for a non-dictionary word , but not the pop up when a "Spelling..." on the context menu.is clicked.
    I need to remove the Spelling... option of the context menu which is in attachement.
    Please let me know , how..

    Thanks in Adavnce!!
  2. Answer
    Andrew avatar
    140 posts

    Posted 02 May 2012 Link to this post

    Hi Steve,

    It is possible to remove the spellchecking group from the context menu. First you need to attach to the Showing event of the ContextMenu as follows:

    ContextMenu contextMenu = (ContextMenu)this.editor.ContextMenu;
    contextMenu.Showing += this.ContextMenu_Showing;
    Then in the handler you need to do the following in order to remove a specific group:
    ContextMenuGroup cmg = e.ContextMenuGroupCollection.Where<ContextMenuGroup>
    ((s) => { return s.Type == ContextMenuGroupType.SpellCheckingCommands; }).FirstOrDefault();
    All the best,
    the Telerik team

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

Back to Top