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

Max Content Length

Max Content Length

RadEditor offers the ability to specify the max characters length that will be submitted to the server by setting the MaxTextLength and MaxHtmlLength properties. This is very useful in database scenarios when the max content length of RadEditor should be set to not exceed the specified characters length of the database field.

ASP.NET
<telerik:RadEditor RenderMode="Lightweight" runat="server" MaxTextLength="150" ID="RadEditor1">
	<Modules>
		<telerik:EditorModule Name="RadEditorStatistics" Visible="true" />
	</Modules>
</telerik:RadEditor>

MaxTextLength property restricts only the text length of the content without checking the HTML markup, while the MaxHtmlLength property restricts the content along with the HTML markup.

Note: In order to not decrease typing, editing and pasting performance both properties check the characters length only when submitting the content.

See Also

In this article
Max Content LengthSee Also
Not finding the help you need?
Contact Support