Custom Words in dictionary

2 posts, 0 answers
  1. Denis Cilliers
    Denis Cilliers avatar
    62 posts
    Member since:
    Jan 2004

    Posted 24 Sep 2012 Link to this post

    How would I add custom words or fields to a dictionary so that I can use the spell checker to also check that the client has types the fields correctly

    Such as in the following

    Dear <<CustomerName>>
    Your invoice number <<InvoiceNo>> is due on the following date <<InvoiceDate>>

    I had in mind making the <<CustomerName>> a special word in a custom dictionary
  2. Svett
    Svett avatar
    728 posts

    Posted 27 Sep 2012 Link to this post

    Hello Denis,

    You can create a custom dictionary by reading the online documentation here

    Alternatively, you can add the word to the current dictionary in the following way:
    RadSpellChecker spellChecker = new RadSpellChecker();
    IControlSpellChecker controlSpellChecker = spellChecker.GetControlSpellChecker(typeof(RadRichTextBox));
    controlSpellChecker.SpellChecker.AddWord("Your word");

    I hope this helps.
    All the best,
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top