Spell Check Question

12 posts, 1 answers
  1. Nalley
    Nalley avatar
    3 posts
    Member since:
    Jan 2011

    Posted 07 Mar 2012 Link to this post

    The spell checking is catching the misspelled words, but not suggesting an alternative. Any suggestions?
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 08 Mar 2012 Link to this post

    Hi Nalley,

    I haven't been able to replicate this. I added a RadButton, RadSpellChecker and RadTextBox to a form and the following code:

    private void Form1_Load(object sender, EventArgs e)
    {
        this.radTextBox1.Text = "The quik broun foxx jumpd ovur lasy dog";
        this.radSpellChecker1.SpellCheckMode = Telerik.WinControls.UI.SpellCheckMode.WordByWord;
    }
     
    private void radButton1_Click(object sender, EventArgs e)
    {
        this.radSpellChecker1.Check(this.radTextBox1);
    }

    and the spell checker worked as expected. You can also have a look at the help at this link

    If you have the SpellChecker set to
    this.radSpellChecker1.SpellCheckMode = Telerik.WinControls.UI.SpellCheckMode.AllAtOnce;

    then you need to double-click each word in the suggestions area as it checks it.
    Hope that helps
    Richard


  3. UI for WinForms is Visual Studio 2017 Ready
  4. Timothy
    Timothy avatar
    37 posts
    Member since:
    Nov 2012

    Posted 27 Dec 2012 Link to this post

    Since this was posted under RichTextBox header I'm assuming the original poster meant that it wasn't working for RichTextBox controls.

    I see the same behavior. If IsSpellCheckingEnabled is set to True then misspelled words are highlighted but it doesn't suggest alternatives.

    I tried using
        Friend WithEvents rscMain As Telerik.WinControls.UI.RadSpellChecker 
        rscMain.Check(Me.rtbComments) 

    where Me.rtbComments is a RadRichTextBox control and it brings up the spell checker form and suggests alternatives but it when you're done correcting the spelling and click on Ok (or fix the last misspelled word) it doesn't copy the changes back to the RichTextBox control. I had to switch to using a RadTextBox control.

    Off topic:
    I also tried a RadTextBoxControl control and got errors when trying to use the spell checker with it.
    I add this to my form load event:
                rscMain.RegisterControlSpellCheker(GetType(RadTextBoxControl), New TextBoxSpellChecker) 
    But when I tried to check the spelling I get:
        Unable to cast object of type 'Telerik.WinControls.UI.RadTextBoxControl' to type 'System.Windows.Forms.TextBoxBase'.
  5. Plamen
    Admin
    Plamen avatar
    132 posts

    Posted 28 Dec 2012 Link to this post

    Hi guys,

    Thank you for writing.

    I have prepared a sample demo application, which demonstrates the "spell checking as you type" functionality of RadRichTextBox and RadTextBox controls.

    In addition, you could read the following documentation articles:

    I hope that you find this information useful. Please excuse us for the introduced inconvenience.

    Greetings,
    Plamen
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
  6. Timothy
    Timothy avatar
    37 posts
    Member since:
    Nov 2012

    Posted 28 Dec 2012 Link to this post

    Please note that in my off topic example I was using the RichTextBoxControl control. I'm not sure what the difference between RichTextBox and RichTextBoxControl is, I haven't researched that yet. However, the spell checker does not work on RichTextBoxControl. At least not the way I've been trying it.

    Also, I found out why the spell checker wasn't working on the RichTextBox control. Add the following line to your example and see if it works after you do so:
                this.radSpellChecker1.SpellCheckMode = Telerik.WinControls.UI.SpellCheckMode.AllAtOnce; 

    It doesn't for me.

    Another Off Topic comment:
    Also, I use VB.NET and had to convert your example. I tried using your online converter (multiple file version). It didn't quite get it right. It botched the event handlers for the buttons. (I did the conversion because I wanted to make sure it wasn't a C#/VB difference.)

    Thanks,
    Tim
  7. Plamen
    Admin
    Plamen avatar
    132 posts

    Posted 02 Jan 2013 Link to this post

    Hello Tim,

    Please excuse me for the misunderstanding. Attached you could find converted sample project from my previous post  in Visual Basic, which demonstrates the "spell checking as you type" functionality of RadRichTextBox and RadTextBox controls.

    Telerik RadControls for WinForms do not include RichTextBoxControl. However, I can confirm that RadRichTextBox does not behave correctly in your scenario. I have added this as a bug report to our Public Issue Tracking System. Feel free to add your vote for it here: http://www.telerik.com/support/pits.aspx#/public/winforms/13908. I have updated your Telerik Points for this report.

    Unfortunately, I am currently not able to provide you with a valid work around.

    If you have any further questions, do not hesitate to contact us.

    Greetings,
    Plamen
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
  8. Timothy
    Timothy avatar
    37 posts
    Member since:
    Nov 2012

    Posted 02 Jan 2013 Link to this post

    Sorry, I was confused. I meant RadTextBox and RadTextBoxControl. It's the RadTextBoxControl that doesn't work.
  9. Plamen
    Admin
    Plamen avatar
    132 posts

    Posted 05 Jan 2013 Link to this post

    Hello Timothy,

    Thank you for the suggestion.

    RadTextBoxControl currently does not support spell checking.  We will add to our Public Issue Tracking System for consideration. You can track the status of the item here:
    http://www.telerik.com/support/pits.aspx#/public/winforms/13931. I have updated your Telerik Points for this report.

    I have prepared a sample project, which implements the spell checking feature of the RadTextBoxControl. Please refer to the attachment.

    If you have any further questions, do not hesitate to contact us.

    Greetings,
    Plamen
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
  10. Chan
    Chan avatar
    14 posts
    Member since:
    Nov 2012

    Posted 02 May 2013 Link to this post

    Hello  !
    I sensed trouble with following code :
    1.  this.radSpellChecker1.Check(this.radRichTextBox1);
    2.  this.radSpellChecker1.Check(this.radTextBox1);

    Code at line number 2 works fine i.e. the spell checker takes the contents of RadTextBox as input, checks the spelling mistakes and provides suggestions, at end, on completion of spelling check the corrected text gets inserted in RadTextBox but for the code written in line number 1 to check the spelling in RadRichTextBox every thing happens as usual but at end on completion of spelling check and correction the corrected words doesn't gets inserted into RadRichtextbox i.e. even after spelling check completes the text remains same in RadRichTextBox on which spell check is performed. Spelling check mode is "AllAtOnce".


    Thanks,

    Chan
  11. Anton
    Admin
    Anton avatar
    167 posts

    Posted 07 May 2013 Link to this post

    Hi Chan,

    Thank you for writing.

    I can confirm that is an issue in RadRichTextBox and we already have a related PITS item. You can track its status and add your vote for it here: http://www.telerik.com/support/pits.aspx#/details/Issue=13908

    Unfortunately, I cannot provide you with a suitable workaround, due to the nature of the issue.

    Please excuse us for the introduced inconvenience. Let me know if you have any additional questions.

    Greetings,
    Anton
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  12. Chan
    Chan avatar
    14 posts
    Member since:
    Nov 2012

    Posted 29 May 2013 Link to this post

    Hello !!!

    Is there any control available to perform Grammar check on textbox/richtextbox.
    Currently we have radspellchecker that checks only spellings not grammar.

    if there is not any control available for grammarcheck then, is there any other alternative way to perform grammar check ?



    rgds,

    Chan
  13. Anton
    Admin
    Anton avatar
    167 posts

    Posted 03 Jun 2013 Link to this post

    Hi Chan,

    Thank you for writing.

    Currently, we do not have grammar checker and we do not have plans for such. Such a feature would require huge amount of resources and it is not in our TODO list for our future releases. We can not offer any alternative way to achieve the desired functionality.

    Should you have any other questions, I will be glad to assist you. 

    Regards,
    Anton
    Telerik
    RadChart for WinForms is obsolete. Now what?
Back to Top
UI for WinForms is Visual Studio 2017 Ready