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

Content and Text properties not updated on postback

1 Answer 120 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 13 Aug 2008, 08:43 PM
I populate the editor.Content property when the editor loads. When I go to save the content being edited. The edited content is not changed.

I have tried the suggestion here: http://www.telerik.com/support/kb/article/b454K-hee-b454T-ctb-b454c-ctb.aspx, but that does not work

Ideas?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Aug 2008, 07:26 AM
Hi Victor,

Your problem is more likely related to overriding the editor content yourself, in your Page_Load method. Please note that if you read the content of the editor in an event handler (such as a button event handler) this event handler executes later in the page lifecycle compared to Page_Load. This is why, in case you set the initial content in Page_Load it is mandatory to add a check, e.g.

if (!Page.IsPostBack)
{
    radEditor1.Html = "Some content";
}

In case you are having any difficulty, our suggestion is to implement your scenario using a simple <asp:TextBox> instead of RadEditor. Once you get the textbox to work as needed, all you need to do is change the textbox to RadEditor - and all should be fine.

In case you are able to implement your scenario with a simple <asp:TextBox>, yet you are facing trouble with the RadEditor, please send us your working project in a support ticket and we will make the change for you.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Victor
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or