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

[Solved] parsecontrol not handling html

1 Answer 79 Views
Editor
This is a migrated thread and some comments may be shown as answers.
I. Breukink
Top achievements
Rank 1
I. Breukink asked on 05 Aug 2009, 05:25 PM

I'm using a parsecontrol function (Controls.Add(ParseControls(string)); where string contains a definition of (amongst others) a RadEditor complete with a content-tag. My problem is that the html text inside the content tag is shown in the editor in design mode as html-code ( i'm only running the design mode). If i use the same content( the same html-text) and use radeditor1.Content = string in the pageload (where radeditor1 is an editor on the aspx file, so not dynamic generated), it is read as html and shown in the correct way (so bold text etc instead of the code <b> ).
How can i make the dynamically generated radeditors read the html-content correctly?

Thanks

 

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 11 Aug 2009, 06:14 AM
Hello I. Breukink,

The problem is in the ParseControl() method. Our recommendation is to find the RadEditor object using a server code after the ParseControl function and after that set the content in the editor using its Content server property.

All the best,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
I. Breukink
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or