RadRichTextBox - SpellCheck could not change incorrect words within Annotation Ranges

7 posts, 0 answers
  1. Babu
    Babu avatar
    11 posts
    Member since:
    Feb 2014

    Posted 10 Dec 2014 Link to this post

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

    Posted 12 Dec 2014 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Babu
    Babu avatar
    11 posts
    Member since:
    Feb 2014

    Posted 12 Dec 2014 in reply to Svetoslav Link to this post

    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.
  5. Tanya
    Admin
    Tanya avatar
    402 posts

    Posted 16 Dec 2014 Link to this post

    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.

     
  6. Babu
    Babu avatar
    11 posts
    Member since:
    Feb 2014

    Posted 16 Dec 2014 in reply to Tanya Link to this post

    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?

  7. Babu
    Babu avatar
    11 posts
    Member since:
    Feb 2014

    Posted 17 Dec 2014 in reply to Babu Link to this post

    Is there any way to at least exclude the read only ranges from spellcheck?
  8. Tanya
    Admin
    Tanya avatar
    402 posts

    Posted 18 Dec 2014 Link to this post

    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.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready