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

Rad Editor control and spell check

1 Answer 46 Views
Editor
This is a migrated thread and some comments may be shown as answers.
michelle
Top achievements
Rank 1
michelle asked on 04 Nov 2008, 04:57 PM
Is it possible to prevent the spell checker from fireing once it has fired on a Rad Editor control? 

In this example, the Rad Editor has the spell check button in the tool bar, and the form has a "save" button which fires the spell check when clicked, then saves the content to a database when the spell check is completed.  If the user chooses to run the spell check from the tool bar, what is the best way to disable the "save" button, so the spell check isn't launched multiple times?

Thanks!
Michelle

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 Nov 2008, 05:17 PM
Hi Michelle,

Please, see the following live example http://demos.telerik.com/aspnet/prometheus/Editor/Examples/AutoSave/DefaultCS.aspx.

You can hide a toolbar button on the client using the getToolByName() method of the editor, e.g.

var oTool = editor.getToolByName("AjaxSpellCheck"); //get a reference to the custom tool
oTool.get_element().style.display = "none";

You can see how to disable a button in the following article: http://www.telerik.com/help/aspnet-ajax/setbuttonstate.html

Greetings,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
michelle
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or