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

Maximum length of the Content Html string

2 Answers 154 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Roger Withnell
Top achievements
Rank 1
Roger Withnell asked on 07 Aug 2010, 03:31 PM
I am saving the Content Html string in a SQL database table with a maximum length of 1,000 characters (nvarchar).

When the user is entering information into the content area, how do I warn her that she is at the maximum character limit and how do I make sure that any string truncated to 1,000 is valid Html?

Your help would be much appreciated.

Thanking you in in anticipation.

Roger

2 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 09 Aug 2010, 02:29 PM
Hello Roger,

To restrict the content length of the Editor you can set the property MaxHtmlLength="1000". To alert the user that they have reached the max character html limit, I found this help article which does just that.

http://www.telerik.com/help/aspnet-ajax/editor_get_html.html

I hope that helps.
0
Rumen
Telerik team
answered on 09 Aug 2010, 05:06 PM
Hi guys,

This forum thread provides guidance how to add a custom symbol counter validation: Charector limit in Rad:Editor. It could be helpful as well.

Best regards,
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
Roger Withnell
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Rumen
Telerik team
Share this question
or