When I call the RadSpellChecker control to spellcheck a textbox it is slow the first time:
RadSpellChecker.Check(txtBox, SpellCheckingMode.AllAtOnce);
Sometimes the RadSpellChecker window ​appears behind the parent window. Also, if I click on the application icon on the task bar, the RadSpellChecker window goes behind the parent window. I can deal with this, but my users can't. Is there a setting that I'm missing to set the RadSpellChecker control to be the topmost window?
5 Answers, 1 is accepted
Thank you for contacting us,
Let me get straight to the questions:
- "When I call the RadSpellChecker control to spellcheck a textbox it is slow the first time:"- This is caused because of the fact that internally the TextBox is converted to RadDocument which invoke method to measure the document and slows down the performance.
- "Sometimes the RadSpellChecker window appears behind the parent window"- I can confirm that the problem exists and I have logged it to our feedback portal where you can upvote and track the overall progress of the issue:
RadSpellChecker window appears behind the parent window when the parent window got the focus. - "RadSpellChecker doesn't spell check uppercase words "- Here is a code snippet that demonstrates how to use RadSpellCheker with settings.
public
partial
class
MainWindow : Window
{
public
MainWindow()
{
RegisterSpellChecker();
InitializeComponent();
}
private
static
void
RegisterSpellChecker()
{
RadRichTextBoxSpellChecker rtbSpellChecker =
new
RadRichTextBoxSpellChecker();
rtbSpellChecker.SpellChecker.Settings.SpellCheckUppercaseWords =
true
;
ControlSpellCheckersManager.RegisterControlSpellChecker(rtbSpellChecker);
}
private
void
btnSpellCheck_Click(
object
sender, RoutedEventArgs e)
{
RadSpellChecker.Check(
this
.textBox, SpellCheckingMode.AllAtOnce);
}
}
I have added some Telerik points to your account as a token of appreciation for the bug report.
I hope this information was helpful. If you have further questions let us know.Regards,
Svetoslav
Telerik
Here are a couple more problems:
- The alert window for Spelling Complete can also go behind the application window, just as the RadSpellchecker.AllAtOnce window.
- Words like "Didn't, Couldn't, Won't" show as misspelled in the .WordByWord option, but not in the .AllAtOnce option. It still didn't like them if I put them in a custom dictionary.
1. The Alert and AllAtOnce dialogs hide behind the main window because they don't have an owner (parent). We are already familiar with this issue and will do our best to fix it as soon as possible.
2. As for the second issue, related to words with contracted negative forms, I can confirm that the problem exists and I have logged it in our feedback portal where you can track the overall progress of the issue: "Contracted negative forms are not recognized for TextBox and RichTextBox when the SpellCheckingMode is set to WordByWord."
Please find attached a sample project demonstrating how to implement a logic, which will help the RadSpellChecker to respect words with contracted negative form.
In appreciation for your bug report, I have updated your Telerik points.
I hope this helps. Don't hesitate to contact us again.
Regards,
Svetoslav
Telerik