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

Spell Check Question

11 Answers 401 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
Nalley
Top achievements
Rank 1
Nalley asked on 07 Mar 2012, 08:43 PM
The spell checking is catching the misspelled words, but not suggesting an alternative. Any suggestions?

11 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 08 Mar 2012, 05:44 PM
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


0
Timothy
Top achievements
Rank 1
answered on 27 Dec 2012, 11:27 PM
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'.
0
Plamen
Telerik team
answered on 28 Dec 2012, 03:05 PM
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.
0
Timothy
Top achievements
Rank 1
answered on 28 Dec 2012, 07:00 PM
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
0
Plamen
Telerik team
answered on 02 Jan 2013, 04:08 PM
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.
0
Timothy
Top achievements
Rank 1
answered on 02 Jan 2013, 05:35 PM
Sorry, I was confused. I meant RadTextBox and RadTextBoxControl. It's the RadTextBoxControl that doesn't work.
0
Plamen
Telerik team
answered on 05 Jan 2013, 08:05 AM
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.
0
Chan
Top achievements
Rank 1
answered on 02 May 2013, 12:46 PM
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
0
Anton
Telerik team
answered on 07 May 2013, 11:52 AM
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.
0
Chan
Top achievements
Rank 1
answered on 29 May 2013, 12:20 PM
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
0
Anton
Telerik team
answered on 03 Jun 2013, 09:03 AM
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?
Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
Nalley
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Timothy
Top achievements
Rank 1
Plamen
Telerik team
Chan
Top achievements
Rank 1
Anton
Telerik team
Share this question
or