4 Answers, 1 is accepted
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"
);
Andrew
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
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
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.
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.