Completed
Last Updated: 13 Nov 2014 13:55 by ADMIN
ADMIN
George
Created on: 04 Nov 2014 12:13
Category: Editors
Type: Bug Report
0
FIX. RadSpellChecker - The SpellCheckAllAtOnceForm does not use the correct dictionary to load and save the words
To reproduce:

Add a RadSpellChecker and a RadTextBox. Load a custom dictionary for RadTextBox:

DocumentSpellCheckerspellChecker = checker.GetControlSpellChecker(typeof(RadTextBox)).SpellChecker asDocumentSpellChecker;

WordDictionarydict = newWordDictionary();



using(MemoryStreamms = newMemoryStream(File.ReadAllBytes("sv-SE.tdf")))
{
           dict.Load(ms);
}

spellChecker.AddDictionary(dict, CultureInfo.CurrentCulture);

On a button click spell check the textbox when it has the following text: Varfor fungärar innte dettta

this.checker.SpellCheckMode = SpellCheckMode.AllAtOnce;

this.checker.Check(this.textBox);

You will see that the suggested words are not in Swedish.

Workaround:

Add the dictionary to the RadRichTextBox spell checker:

DocumentSpellCheckerrichSpellChecker = checker.GetControlSpellChecker(typeof(RadRichTextBox)).SpellChecker asDocumentSpellChecker;

richSpellChecker.AddDictionary(dict, CultureInfo.CurrentCulture);


(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments