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

Share corrections/ignore

3 Answers 66 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 15 Jun 2011, 05:54 PM
I have a dozen RadRichText fields on a page with Spellchecker enabled.  I was able to get every field to share the same "Add to Dictionary" values by saying radrichtext1.SpellChecker = radrichtext2.SpellChecker = radrichtext.SpellChecker, but that approach is not working for Ignore keywords.  How could I share both Add to Dictionary and Ignore for all of these fields?

3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 17 Jun 2011, 04:53 PM
Hi Keith,

You can adopt the same approach for the ignored words, as the one with the ignored words, namely to set the IgnoredWords property of all rich text boxes to the same instance of IIgnoredWordsDictionary:

radrichtext1.IgnoredWords = radrichtext2.IgnoredWords = radrichtext.IgnoredWords ;
Kind regards,
Iva
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
0
Keith
Top achievements
Rank 1
answered on 17 Jun 2011, 05:41 PM
Thanks Iva.  Is there any way though to persist the ignored words/added words across the app so that they are available for all RadRichTextBox fields?  This approach works well for same page, but I would assume that all fields throughout my app would need to share these values.
0
Ivailo Karamanolev
Telerik team
answered on 22 Jun 2011, 05:31 PM
Hi Keith,

As the behavior you want to implement is pretty specific, there is no standard way to do it. Allowing such custom scenarios is the reason RadRichTextBox's API was designed with extensibility in mind. You will have share a single instance of the ignored words dictionary between all RadRichTextBox instances as Iva has shown you previously. The exact way you will do it depends on your specific application and is generally left to the user.

Best wishes,
Ivailo
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
Tags
RichTextBox
Asked by
Keith
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Keith
Top achievements
Rank 1
Ivailo Karamanolev
Telerik team
Share this question
or