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

RadSpellChecker control goes behind parent window

5 Answers 98 Views
SpellChecker
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 16 Sep 2015, 07:35 PM

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

Sort by
0
Steve
Top achievements
Rank 1
answered on 17 Sep 2015, 03:19 PM
It seems to work ok for SpellCheckingMode.WordByWord but not for SpellCheckingMode.AllAtOnce.
0
Steve
Top achievements
Rank 1
answered on 17 Sep 2015, 03:46 PM
And if you set SpellCheckingMode.WordByWord, RadSpellChecker doesn't spell check uppercase words even if you have DocumentSpellChecker.Settings.SpellCheckUppercaseWords = true.  I need to spell check uppercase words.
0
Svetoslav
Telerik team
answered on 21 Sep 2015, 04:04 PM
Hello Steve,

Thank you for contacting us,

Let me get straight to the questions:
  1. "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.
  2.  "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.
  3. "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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Steve
Top achievements
Rank 1
answered on 23 Sep 2015, 05:06 PM

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.

0
Svetoslav
Telerik team
answered on 25 Sep 2015, 11:06 AM
Hello Steve,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
SpellChecker
Asked by
Steve
Top achievements
Rank 1
Answers by
Steve
Top achievements
Rank 1
Svetoslav
Telerik team
Share this question
or