RadSpellChecker Add Dictionary

5 posts, 0 answers
  1. Dharma
    Dharma avatar
    5 posts
    Member since:
    Jul 2012

    Posted 29 Aug 2012 Link to this post

    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..
  2. Andrew
    Admin
    Andrew avatar
    140 posts

    Posted 03 Sep 2012 Link to this post

    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.

  3. DevCraft banner
  4. Dharma
    Dharma avatar
    5 posts
    Member since:
    Jul 2012

    Posted 12 Sep 2012 Link to this post

    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
  5. Andrew
    Admin
    Andrew avatar
    140 posts

    Posted 17 Sep 2012 Link to this post

    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.

  6. Dharma
    Dharma avatar
    5 posts
    Member since:
    Jul 2012

    Posted 17 Sep 2012 Link to this post

    Thanks a bunch!!
Back to Top
DevCraft banner