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

How to set radeditor maximum size for content writen in it

6 Answers 192 Views
Editor
This is a migrated thread and some comments may be shown as answers.
meet
Top achievements
Rank 1
meet asked on 29 Oct 2007, 06:52 AM
Please help me 
When i write some content in editor (thousand line of code ) after posting it retain only some hundared  of lines. The remaining charater is cut off .
Please help me ,
Is there any property for conetnt has to set or not.

6 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 29 Oct 2007, 08:59 AM
Hi Meet,

RadEditor "Prometheus" does not have such a property and it does not modify the content. Are you able to reproduce the reported problem with the Default example or the Save In Database example of RadEditor?

Could you please provide step-by-step instructions how to reproduce the problem? We will need a sample working project that demonstrates the problem along with sample HTML content.

Once we are able to reproduce the problem, we will do our best to provide a solution.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
meet
Top achievements
Rank 1
answered on 29 Oct 2007, 02:30 PM
Thanks for your reply.
 In the same way  that showm in your  save in database link Save in database
These are the line which fetch the content from Editor in c#(asp.net 2.0) 
edtBlogContent is the ID of the radeditor

objBlogProp.BlogContent = Convert.ToString(edtBlogContent.Html.Trim());
From the link that you have sent it working fine whatever the cotent length.
But in my case  in the database BlogContent field have the datatype
nvarchar(MAX)
In this case we have no limt on posted content ok .
when i post too lengthy  content  it retain only 1512 string in length (it is saving in the databse ) and content extra to it is is not saved in the database mean it is not there, mean it is omitted
Why is it so...........i do't know....


 
0
Erjan Gavalji
Telerik team
answered on 29 Oct 2007, 03:34 PM
Hi meet,

You should use ntext type for large textual data instead of nvarchar. By the way, the max size of the nvarchar type in SQL Server is 4000, but if you count only the text characters but not the Html behind them, 1512 chars seem normal.

I hope this helps.

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Torben Hansen
Top achievements
Rank 1
answered on 07 Nov 2007, 02:54 PM
i store it in a varchar(MAX) and it seems that i have the same problem.
0
Lini
Telerik team
answered on 07 Nov 2007, 04:11 PM
Hello,

The MAX datatypes in SQL 2005 should have no problem storing the editor content, since their practical limit is 2 GB of data. However, some operations will make the SQL server convert it back to a normal varchar type (with a max size of 8000). If you are making some modification to the content using queries or stored procedures, you should make sure that they output varchar(MAX) type.

I recommend that you also check the editor content on the server and verify that it has the correct length. Then compare it to the length of the stored value in the database.

Greetings,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Torben Hansen
Top achievements
Rank 1
answered on 08 Nov 2007, 06:05 AM
sorry, but i was the problem.
i get a storedprocure to store the data, and the parameter in that was only varchar(4000).
i just looked at the table, here it was vachar(max) and the code was ok, but i forget to look at the storedprocedure.
Tags
Editor
Asked by
meet
Top achievements
Rank 1
Answers by
Rumen
Telerik team
meet
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Torben Hansen
Top achievements
Rank 1
Lini
Telerik team
Share this question
or