This is a migrated thread and some comments may be shown as answers.
SpellChecker - How to restrict usage of custom dictionaries...
7 Answers 27 Views
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 21 Nov 2012, 08:53 PM
Hello,

I need to customize the SpellCheckingDialog to remove the "Add To Dictionary" button, and the "Edit Custom Dictionary" button.  How do I do that?  We want to force users to use the default dictionaries only.

Thanks,
Rob

7 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 26 Nov 2012, 02:01 PM
Hello Rob,

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.

0
Rob
Top achievements
Rank 1
answered on 26 Nov 2012, 06:23 PM
OK.  I don't really like these solutions but I'll use it for now.

Can I request some sort of option in the future like "UseCustomDictionaries"?
0
Martin Ivanov
Telerik team
answered on 28 Nov 2012, 04:20 PM
Hello Rob,

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?

All the best,
Martin
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Rob
Top achievements
Rank 1
answered on 28 Nov 2012, 09:04 PM
Thanks for that...

We are using the RadRichTextBox and RadRichTextBoxRibbonUI...  I was thinking there might be a property on the RadRichTextBox like "AllowCustomDictinaries" or something similar. 
0
Iva Toteva
Telerik team
answered on 29 Nov 2012, 08:52 AM
Hi Rob,

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

Kind regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Pablo
Top achievements
Rank 1
answered on 28 Jun 2013, 08:42 PM
Hi, I'm trying to build my own custom SpellCheckingDialog for a RadRichTextBox, is there any guide you could give me please. I'd be trully grafeful.

Thanks in advance
0
Anna
Telerik team
answered on 03 Jul 2013, 11:59 AM

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,

Anna
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
Asked by
Rob
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Rob
Top achievements
Rank 1
Iva Toteva
Telerik team
Pablo
Top achievements
Rank 1
Anna
Telerik team
Share this question
or