RadEditor added at runtime does not retain content after postback

6 posts, 0 answers
  1. Francis Frank
    Francis Frank avatar
    35 posts
    Member since:
    Mar 2010

    Posted 03 Nov 2011 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    14361 posts

    Posted 08 Nov 2011 Link to this post

    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
  3. Francis Frank
    Francis Frank avatar
    35 posts
    Member since:
    Mar 2010

    Posted 09 Nov 2011 Link to this post

    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?

  4. Rumen
    Admin
    Rumen avatar
    14361 posts

    Posted 09 Nov 2011 Link to this post

    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
  5. Shukhrat Nekbaev
    Shukhrat Nekbaev avatar
    73 posts
    Member since:
    Oct 2010

    Posted 03 Apr 2012 Link to this post

    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>
  6. Rumen
    Admin
    Rumen avatar
    14361 posts

    Posted 03 Apr 2012 Link to this post

    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.
Back to Top