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

Disable SpellChecking Pop Up.

1 Answer 47 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 30 Apr 2012, 09:15 PM
 Hi,

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!!

1 Answer, 1 is accepted

Sort by
0
Accepted
Andrew
Telerik team
answered on 02 May 2012, 05:09 PM
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();
e.ContextMenuGroupCollection.Remove(cmg);
All the best,
Andrew
the Telerik team

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

Tags
RichTextBox
Asked by
Steve
Top achievements
Rank 1
Answers by
Andrew
Telerik team
Share this question
or