I have a RadEditor that changes between edit and view mode. When disabling the Editor, the toolbar disappear and it looks cleaner for view mode but the OnClientLoad and OnClientInit event are not triggering. As soon as I enable the editor, it works.
Any work around?
3 Answers, 1 is accepted
0
Rumen
Telerik team
answered on 24 Nov 2011, 04:19 PM
Hi Grillonegro,
When the Enabled property of RadEditor is set to false, then the editor is rendered as a standard DIV element on the page and its content is loaded in this DIV. Since there is no editor on the page its client event are not loaded. This is by design.
If you would like to disable the editor without rendering a DIV on the page, you should do that on the client using the editor.enableEditing(false) method. Here is an example:
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 their blog feed now
If I set the property ToolbarMode=ShowOnFocus when RadEditor is on Preview mode, the toolbar wont be displayed. This is the functionality I was looking for.