New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

set_mode

Sets RadEditor for ASP.NET AJAX in Html, Preview or Design mode

function set_mode (value)
value: 1integerSets RadEditor for ASP.NET AJAX in Design mode
value: 2integerSets RadEditor for ASP.NET AJAX in Html mode
value: 4integerSets RadEditor for ASP.NET AJAX in Preview mode

The following example will set the editor in Html mode on page load

ASP.NET
<script type="text/javascript">
	function OnClientLoad(editor, args) {
		editor.set_mode(2);
	}
</script>
<telerik:radeditor runat="server" id="RadEditor1" OnClientLoad="OnClientLoad"></telerik:radeditor> 
Not finding the help you need?
Contact Support