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

Dynamically Adding Editor to a User Control

2 Answers 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 06 Jan 2009, 04:31 PM
I am trying to use the radEditor in a custom control in my control library.  However, since the editor is being added to the control dynamically, the content is being lost on postback.  Is there any way to retrieve the content of the editor?  Its not in the request object, is it?

Thanks,
Matt

2 Answers, 1 is accepted

Sort by
0
Accepted
Serrin
Top achievements
Rank 1
answered on 06 Jan 2009, 09:02 PM
Hey Matt,

Have you tried including a hidden field on the control that persists viewstate through postback?  I have a similar setup in one of my projects and that works well for me. I just drop the editor content into there and use content on postback.
0
Matt
Top achievements
Rank 1
answered on 08 Jan 2009, 05:44 PM
Serrin,

Thanks for the post...that worked for me!

Matt
Tags
Editor
Asked by
Matt
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
Matt
Top achievements
Rank 1
Share this question
or