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

RadRichTextBox - SpellCheck could not change incorrect words within Annotation Ranges

6 Answers 119 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Babu
Top achievements
Rank 1
Babu asked on 10 Dec 2014, 12:39 PM
We are using RadRichTextBox with Default Spell check feature.

We found that SpellCheck could not change incorrect words within Annotation Ranges().

Is there any way to make spellcheck work for annotation ranges.

6 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 12 Dec 2014, 02:16 PM
Hi Babu,

Thank you for contacting us.

I tried a few scenarios on our end, but everything is working as expected. Currently RadRichTextBox doesn't support only spell checking for hyperlinks. We have logged a feedback item "Provide option to choose whether to spell check hyperlinks" as a feature request in our feedback portal where you can vote and track its progress.

I hope this information is helpful. Let me know if I am missing something.

Regards,
Svetoslav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Babu
Top achievements
Rank 1
answered on 12 Dec 2014, 02:56 PM
Thanks for taking feature request for spellchecking in Hyperlinks. 

Regarding spellcheck in Annotation Ranges, Telerik spell checker is able to identify incorrect words and also shows suggestions for words within Annotation Ranges(Refer attachment 1.jpg). But, when we try to select the correct word from spell checker context menu, it could not replace the word within readonly Annotation Range.

We are using a readonly Annotation Range. We do not want to allow the user to edit words within the annotation range, but want spell checker to correct words within the range if it contains incorrect words.

Please suggest a solution.
0
Tanya
Telerik team
answered on 16 Dec 2014, 02:44 PM
Hi Babu,

Read Only Ranges are protecting parts of the document from editing. The Spell Checker should edit the word in order to correct the error in it, but the restrictions form the read only range does not allow it. Usually ranges of this type are typed before showing the document, so you can check their correctness either by yourself or using the DocumentSpellChecker class. The next snippet shows how to spellcheck the current selection and you can use it in code before inserting the read-only range.
bool isCorrect = this.radRichTextBox.SpellChecker.CheckWordIsCorrect(this.radRichTextBox.Document.Selection.GetSelectedText().Trim());

Let me know if there is anything I can be helpful with.

Regards,
Tanya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Babu
Top achievements
Rank 1
answered on 16 Dec 2014, 02:51 PM
Thanks for your response.

In my case, Spellchecker is able to identify incorrect word within the read only ranges in the document.

But, is there any workaround by which I can replace the incorrect word in the readonly range?

0
Babu
Top achievements
Rank 1
answered on 17 Dec 2014, 11:37 AM
Is there any way to at least exclude the read only ranges from spellcheck?
0
Tanya
Telerik team
answered on 18 Dec 2014, 08:49 AM
Hello Babu,

The SpellChecher checks all the text in the document, but checking requires only reading and not modifying. That is why it is identifying incorrectly written words. To correct the misspelled word it should not be protected. While the content is in ReadOnly range it cannot be modified neither by users nor by the Spell Checker.

Excluding parts of a document from spellchecking is not supported at the moment.

Regards,
Tanya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
RichTextBox
Asked by
Babu
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Babu
Top achievements
Rank 1
Tanya
Telerik team
Share this question
or