RadSpellChecker control goes behind parent window

6 posts, 0 answers
  1. Steve
    Steve avatar
    4 posts
    Member since:
    Dec 2011

    Posted 16 Sep 2015 Link to this post

    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?

  2. Steve
    Steve avatar
    4 posts
    Member since:
    Dec 2011

    Posted 17 Sep 2015 in reply to Steve Link to this post

    It seems to work ok for SpellCheckingMode.WordByWord but not for SpellCheckingMode.AllAtOnce.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Steve
    Steve avatar
    4 posts
    Member since:
    Dec 2011

    Posted 17 Sep 2015 in reply to Steve Link to this post

    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.
  5. Svetoslav
    Admin
    Svetoslav avatar
    55 posts

    Posted 21 Sep 2015 Link to this post

    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
  6. Steve
    Steve avatar
    4 posts
    Member since:
    Dec 2011

    Posted 23 Sep 2015 in reply to Svetoslav Link to this post

    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.

  7. Svetoslav
    Admin
    Svetoslav avatar
    55 posts

    Posted 25 Sep 2015 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready