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

disabled and enabled javascript

2 Answers 41 Views
Editor
This is a migrated thread and some comments may be shown as answers.
miguel
Top achievements
Rank 1
miguel asked on 29 Jul 2010, 04:51 PM
hi, i'm trying enabling and disabling the editor with javascript but i havent results
I'm trying with

 var editor = $find("<%=RadEditor1.ClientID%>");
  editor.enabled(false);

or

editor.enabled=false;

but nothing ¿how can i do this?
thanks

2 Answers, 1 is accepted

Sort by
0
miguel
Top achievements
Rank 1
answered on 29 Jul 2010, 04:53 PM
i want hide all tools, modules and content areas how when i use in vb.net radeditor1.enabled?false
thanks
0
Rumen
Telerik team
answered on 30 Jul 2010, 03:26 PM
Hi Miguel,

You can disable RadEditor by setting RadEditor1.Enabled = False in the codebehind.

You can do that for example in the Page_Load event, in a button click or another handler, e.g.

Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
        RadEditor1.Enabled = False
End Sub

For your convenience I have attached a sample project.


All the best,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
miguel
Top achievements
Rank 1
Answers by
miguel
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or