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

SpellCheck not working properly for RichTextBox(Version 2011.1.315.35)

1 Answer 167 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Simi
Top achievements
Rank 1
Simi asked on 09 Aug 2011, 11:42 AM

Hi Team Telerik,

 

 

   RadRichtextBox property  IsSpellCheckingEnabled is set to True ,but it is not working properly .All lowercase letters are getting  marked   as  having spellerror and for uppercase letters spellerror is not getting marked.

Code:-

 

 

 

RichTextBox1.IsSpellCheckingEnabled =True
RichTextBox1.Language = Markup.XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.Name)

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 09 Aug 2011, 04:50 PM
Hello Simi,

The words that contain only capital letters are regarded as abbreviations and are not considered misspelled.
When it comes to setting the spell-checking language, RadRichTextBox does not take into consideration the value of the Language property it inherits from FrameworkElement. Instead, you need to set the SpellCheckingLanguage property of the SpellChecker in the following way:

this.radRichTextBox1.SpellChecker.SpellCheckingCulture = new CultureInfo("en-US");

In RadControls for Silverlight/WPF only an en-US dictionary is included. In order to use it, you have to add a reference to Telerik.Windows.Documents.Proofing.Dictionary.En-US.
More information on SpellChecking can be found here. All the best,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
RichTextBox
Asked by
Simi
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or