7 Answers, 1 is accepted
Here's a sample code snippet how to remove these two buttons within the spell checking dialog at runtime:
SpellCheckingDialog dialog = (SpellCheckingDialog)
this
.editor.SpellCheckingDialog;
RadButton button = (RadButton)dialog.FindName(
"buttonAddToDictionary"
);
(button.Parent
as
Panel).Children.Remove(button);
RadButton button2 = (RadButton)dialog.FindName(
"buttonEditCustomDictionary"
);
(button2.Parent
as
Panel).Children.Remove(button2);
Another approach is making your own custom spell checking dialog. In order to do that, it would be easiest to download the source of the controls from our site. Then you can copy and modify the existing spell checking dialog. Finally you need to put the following attribute over the dialog class:
[CustomSpellCheckingDialog]
In this way it will replace the default implementation.
Don't hesitate to contact us if you have other questions.
Regards,
Martin
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Can I request some sort of option in the future like "UseCustomDictionaries"?
We will consider this feature request and can give you a PITS issue which you can use to track our progress. Just a quick question - are you referring to the built-in spell checking of RadRichTextBox or the RadSpellChecker control?
Martin
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
We are using the RadRichTextBox and RadRichTextBoxRibbonUI... I was thinking there might be a property on the RadRichTextBox like "AllowCustomDictinaries" or something similar.
We will see what the best place for adding such a property is - in RadRichTextBox, the SpellChecker or somewhere else. Here is a PITS issue, look it through and let us know if there is something missing:
You can follow the PITS Issue by its ID: 13602
Public Url: http://www.telerik.com/support/pits.aspx#/public/silverlight/13602
Iva Toteva
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thanks in advance
Hi Pablo,
Thank you for your question.
I am attaching a project in which you will find a custom SpellCheckingDialog that we've prepared. You can see that it has the attribute [CustomSpellCheckingDialog] and it inherits the ISpellCheckingDialog interface. From there you don't need to make any additional changes and the RadRichTextBox will recognize the new dialog. In this particular project the content of the custom dialog is identical to the default SpellChecking Dialog, but you are free to remove or add anything you'd like.
I hope this will be helpful. If you encounter further issues, please, do not hesitate to write.
Regards,
AnnaTelerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>