Completed
Last Updated: 27 Dec 2016 15:04 by ADMIN
ADMIN
Plamen
Created on: 02 Jan 2013 05:16
Category: Editors
Type: Bug Report
1
FIX. RadSpellChecker - SpellCheckMode property "AllAtOnce" does not work correctly
To reproduce:

Add the following line of code: 
[C#]
this.radSpellChecker1.SpellCheckMode = Telerik.WinControls.UI.SpellCheckMode.AllAtOnce;
[VB.NET]
Me.RadSpellChecker1.SpellCheckMode = Telerik.WinControls.UI.SpellCheckMode.AllAtOnce

When you spell check RadRichTextBox and the spell check form is opened click the change button. You will notice that the word will not changed in the original RadRichTextBox.

this.radSpellChecker1.RegisterControlSpellChecker(typeof(RadRichTextBox), new MyRichTextBoxSpellChecker());
this.radSpellChecker1.SpellCheckMode = SpellCheckMode.AllAtOnce;

Workaround:
class MyRichTextBoxSpellChecker : RadRichTextBoxSpellChecker
{
    public override Telerik.WinControls.RichTextBox.Model.RadDocument GetContentAsDocument()
    {
        return (this.CurrentControl as RadRichTextBox).Document;
    }
}
0 comments