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

RadEditor added at runtime does not retain content after postback

5 Answers 160 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Francis Frank
Top achievements
Rank 1
Francis Frank asked on 03 Nov 2011, 07:21 PM
1. Please how do I get a RadEditor I added at runtime to retain its content after postback

2. And please how do I remove status bar from an editor added at runtime

I will be greatfull if given an answer

Thanks a lot

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Nov 2011, 11:54 AM
Hi Francis,

1) This is done automatically by the control.
2) You can see how to remove the RadEditor's modules in this article: Disable or Hide Modules.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Francis Frank
Top achievements
Rank 1
answered on 09 Nov 2011, 09:44 AM
Thanks for the reply.
I got the information from manipulating the module property

Please is there no way to have the content of the 'radEditor added at runtime' after postback?

0
Rumen
Telerik team
answered on 10 Nov 2011, 03:04 AM
Hello Francis,

I am not aware of this problem. Could you please provide an example along with steps how to reproduce the content erasing problem?

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Shukhrat Nekbaev
Top achievements
Rank 1
answered on 03 Apr 2012, 09:29 AM
Hi,

was having similar issue with latest controls (2012.1.215.40), I have dynamic containers which are user controls and loaded upon user's action, on initial load I was setting editor's content value, then edit it and click save - control was somehow restoring initial value (the value that was set on inital load). Save button is a RadButton (most likely not important here), but setting UserSubmitBehavior to false has solved the issue. I'm using IE9

<telerik:RadButton ID="btnUpdateCourseUITexts" runat="server" Text="<%$ Resources:PGC, General_SaveChanges %>" OnClick="btnUpdateCourseUITexts_Click" UseSubmitBehavior="false"></telerik:RadButton>
0
Rumen
Telerik team
answered on 03 Apr 2012, 12:14 PM
Hello,

Thanks for the provided information.

Yes, in this scenario is important to set the UseSubmitBehavior to "false" as discussed in the following help article: RadEditor Content Not Saved After Ajax Update in Firefox, Google Chrome and Safari.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Francis Frank
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Francis Frank
Top achievements
Rank 1
Shukhrat Nekbaev
Top achievements
Rank 1
Share this question
or