Approved
Last Updated: 30 Mar 2016 13:10 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 20 Nov 2015 08:32
Category: Editors
Type: Bug Report
0
FIX. RadSpellChecker - correct word wrapped in "[ ]" or in speech marks is underlined with a red line when use spell check as you type in the RadTextBoxControl but the Check method does not recognize
To reproduce:

this.radSpellChecker1.AutoSpellCheckControl = this.radTextBoxControl1;
this.radTextBoxControl1.Text = "this is a test [doc]";

private void radButton1_Click(object sender, EventArgs e)
{
    radSpellChecker1.Check(radTextBoxControl1);
}

The "[doc]" is underlined as misspelled. However, if you click the button, no mistakes will be found.

Workaround:

char[] punctuation = " .,!?-\\/|~!@#$%^&*()[]_+=;:".ToCharArray();
TextBoxSpellChecker tbSpellChecker = this.radSpellChecker1.GetControlSpellChecker(typeof(RadTextBoxControl)) as TextBoxSpellChecker;

FieldInfo fi = typeof(TextBoxSpellChecker).GetField("punctuation",
    System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
fi.SetValue(tbSpellChecker, punctuation);
2 comments
ADMIN
Stefan
Posted on: 11 Dec 2015 15:30
I have updated the case title with this information. Thanks.
Gregg
Posted on: 25 Nov 2015 08:55
This is also a problem if the word is surrounded be speech marks.