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

RadSpellChecker Add Dictionary

4 Answers 61 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Dharma
Top achievements
Rank 1
Dharma asked on 29 Aug 2012, 04:49 PM
Is it possible to add a medical dictionary to the new SpellChecker control for silverlight 5 and allow users to use multiple dictionaries at a time? if so what file type does the dictionary need to be..

4 Answers, 1 is accepted

Sort by
0
Andrew
Telerik team
answered on 03 Sep 2012, 11:01 AM
Hi Dharma,

By the new SpellChecker control I suppose you mean RadSpellChecker. It uses RadDictionary to keep the correct words for a specific language. Here you can find all dictionaries available in .tdf format and prepare RadDictionaries out of them as described in this article.

 In you application you can have many dictionaries loaded but use only one at a time. Every dictionary is mapped to a culuture (CultureInfo) and thus whatever the current culture is, the appropriate dictionary is used. You can set the culture for the TextBoxSpellchecker as follows:

ControlSpellCheckerBase controlSpellChecker = (TextBoxSpellChecker)ControlSpellCheckersManager.GetControlSpellChecker(typeof(TextBoxSpellChecker));
((DocumentSpellChecker)controlSpellChecker.SpellChecker).SpellCheckingCulture = new CultureInfo("en-US");
You can read more about RadSpellChecker here. Regards,
Andrew
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Dharma
Top achievements
Rank 1
answered on 12 Sep 2012, 05:34 PM
Thanks for that,
can you also please tell me how I can convert and add a downloaded dictionary not in the list above to radspellchecker for silverlight, like if I download a .dic/.txt file do I need to convert this to .tdf to use it.  I need to include a specific Medical Dictionary to my silverlight application.
Thanks so much
0
Andrew
Telerik team
answered on 17 Sep 2012, 10:29 AM
Hi Dharma,

Here you can find a project that can create .tdf files. You can either pass a .txt file and convert it or manually add the words you need. 

Kind regards,
Andrew
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Dharma
Top achievements
Rank 1
answered on 17 Sep 2012, 05:38 PM
Thanks a bunch!!
Tags
RichTextBox
Asked by
Dharma
Top achievements
Rank 1
Answers by
Andrew
Telerik team
Dharma
Top achievements
Rank 1
Share this question
or