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

[Solved] RadAjaxManager and RadEditor problem

1 Answer 157 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jorge Merino
Top achievements
Rank 1
Jorge Merino asked on 19 Aug 2009, 04:50 PM
I have the next User Control

ascx File:
<%@ Register Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"   
    Namespace="Telerik.Web.UI" TagPrefix="Telerik" %>   
   
<Telerik:RadEditor runat="server" ID="TestEditor" Skin="Vista"    
                EditModes="Design" Height="200px" Width="100%" EnableResize="False">   
                <Tools>   
                    <Telerik:EditorToolGroup>   
                        <Telerik:EditorTool Name="Bold" />   
                        <Telerik:EditorTool Name="Underline" />   
                        <Telerik:EditorTool Name="Italic" />   
                        <Telerik:EditorTool Name="StrikeThrough" />   
                    </Telerik:EditorToolGroup>   
                    <Telerik:EditorToolGroup>   
                        <Telerik:EditorTool Name="FontName" />   
                        <Telerik:EditorTool Name="FontSize" />   
                        <Telerik:EditorTool Name="ForeColor" />   
                        <Telerik:EditorTool Name="BackColor" />   
                    </Telerik:EditorToolGroup>   
                </Tools>   
<Content>   
</Content>   
            </Telerik:RadEditor>   
    <asp:Button runat="server" ID="btnRadEditorContent" Text="Set RadEditor Content" onclick="btnRadEditorContent_Click" />   
<Telerik:RadAjaxManager runat="server" ID="TestAjaxManager">   
    <AjaxSettings>   
        <Telerik:AjaxSetting AjaxControlID="btnRadEditorContent">   
            <UpdatedControls>   
                <Telerik:AjaxUpdatedControl ControlID="TestEditor" />   
            </UpdatedControls>   
        </Telerik:AjaxSetting>   
    </AjaxSettings>   
</Telerik:RadAjaxManager> 

ascx.cs File:
protected void btnRadEditorContent_Click(object sender, EventArgs e)  
{  
    TestEditor.Content = "This needs to change";  
}  

But when I click the "btnRadEditorContent" button, the RadEditor is not updating the content, It's removing all the toolbars and showing one blank box where I cannot write. Is there another extra step that I'm not doing?.

When I'm not using the AjaxManager, the content is set correctly.

Thanks for your support.


1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 20 Aug 2009, 12:36 PM
Hi Jorge,

I tried to reproduce the problem based on your code but unfortunately to no avail. I tested under IE8 and FF3 but everything worked as expected. The only thing I can suggest without reproducing the issue locally is to try whether setting UseSubmitBehavior="false" for the button fixes the problem as explained below:

http://www.telerik.com/support/kb/aspnet-ajax/editor/radeditor-content-not-saved-after-ajax-update-in-firefox.aspx

If this si not the case, please provide more detailed explanations, full source code and the brpwser under which the problem occurs. 


Regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Jorge Merino
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or