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

[Solved] content in radeditor doesn't update in firefox

3 Answers 154 Views
Editor
This is a migrated thread and some comments may be shown as answers.
calm_boy
Top achievements
Rank 1
calm_boy asked on 19 May 2008, 03:21 PM
I am using a RadEditor in a radgrid. When updating, the content of the RadEditor is lost in Firefox only.

Why is it happening. How can I fix it?

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 May 2008, 03:39 PM
Hi calm_boy,

Please, see and try the solution provided in the following article: RadEditor Content Not Saved After Ajax Update in Firefox.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
calm_boy
Top achievements
Rank 1
answered on 19 May 2008, 03:43 PM
I have already found this fix. But as I mentionned, I am using my RadEditor in a RadGrid. So there is no button click. Unless there is a way of accessing the built in update button?
0
Rumen
Telerik team
answered on 23 May 2008, 11:33 AM
Hi Steve,

When the editor is placed in RadGrid, you can use the following code to fix the problem.

        protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
        {
            GridEditFormItem item = e.Item as GridEditFormItem; //get a reference to the Edit Image button
            if (null != item && item.IsInEditMode)
            {
                ImageButton but = item.FindControl("UpdateButton") as ImageButton;
                but.Attributes.Add("onclick", @"javascript:__doPostBack(this.id,'');");
            }
        }

I am attached my test aspx and codebehind files, which are taken from the RadControls for ASP.NET AJAX examples.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
calm_boy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
calm_boy
Top achievements
Rank 1
Share this question
or