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

Advanced use of RadSpellChecker

1 Answer 128 Views
SpellChecker
This is a migrated thread and some comments may be shown as answers.
Gareth
Top achievements
Rank 1
Gareth asked on 07 Oct 2011, 09:39 AM
Hi there,

I think this question has already been answered by another post, but I need to ask anyway to be sure. I have an advanced use case for the RadSpellChecker and I'd like to know if it's possible.

- I have an HTML page containing a form with multiple textboxes.
- User clicks "Spell Check" on the page and a popup window containing a Silverlight app is opened. The Silverlight app contains a spellcheck-enabled RadRichTextbox.
- For each textbox on the parent window's form:
- Pull in the content and place it in the RadRichTextbox
- If there are no detected errors, move on to the next textbox
- If there are detected errors, perform a word-by-word spellcheck
- Once spellcheck is complete, replace the parent window textbox content with the RichTextbox content, and move on to the next textbox.

I've got the silverlight app cycling through the texboxes on the parent window and populating the RichTextbox. I can also fire off a spellcheck. Here are the problems I have though:

- I'd like to be able to place the RadSpellCheck UI on the main form below the RichTextBox rather than have it pop as a Child window.
- I'd like to be able to get a count of errors in the RichTextBox so that I can move on when no errors are present.

I have a feeling the answers are "no!", but it might give you some ideas. Basically, more control over the Spell Check UI, and perhaps the ability to arbitrarily check a piece of content for errors, without spawning a UI for error checking. Or perhaps an event on the RichTextbox that is fired when it completes its internal spellcheck and places the red lines under the text?

Thanks

1 Answer, 1 is accepted

Sort by
0
Andrew
Telerik team
answered on 12 Oct 2011, 12:03 PM
Hi Gareth,

I see you are using our RadSpellChecker in a very interesting way. Luckily our SpellChecker exposes a convenient API. In fact the default dialogs have been built entirely using this API. We are sending you an example where there are a RadRichTextBox and a custom spellchecking UI on a page. Of course you can style it, use entirely different controls or anything else that you can think of. 
The demo we are sending you first checks if there is an error (your second question) and then if there is, populates the listbox. After that you can choose a word and replace the wrong one.

Please review the demo-project and tell us if that helps you. We are looking forward to your reply.

Regards,
Andrew
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
SpellChecker
Asked by
Gareth
Top achievements
Rank 1
Answers by
Andrew
Telerik team
Share this question
or