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

disable RadEditor using javascripts

1 Answer 23 Views
Telerik Trainer
This is a migrated thread and some comments may be shown as answers.
Santosh
Top achievements
Rank 1
Santosh asked on 03 Oct 2013, 01:13 PM
how to disable/enable entire RadEditor using javascripts ?????

1 Answer, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 08 Oct 2013, 06:55 AM
Hi Santosh,

The RadEditor's property Enabled cannot be manipulated via its Client-side API, by design. When the editor is disabled, there is no available approach to get its Client-side object.

As an alternative I can suggest using the Visible property with its Client-side methods:
editor.get_visible() // retrieves a Boolean with the Visible's value
editor.set_visible() // Sets the Visible to false (can accept a Boolean argument)
editor.set_visible(true) // Sets the Visible to true
 

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Telerik Trainer
Asked by
Santosh
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or