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

Simple RadEditor within UpdatePanel problem?

3 Answers 144 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 2
Brian asked on 04 Nov 2008, 07:21 PM
For some reason, I only get TextChanged to fire if I switch between design/html source mode before hitting my submit button. The entire control is embedded within a regular <asp:UpdatePanel ...> If I take the editor out of the update panel, the initial postback is fine and the .Content/.Text properties have their values. Does RadEditor-Ajax play nice with UpdatePanels? I'm using build version 1001 in a ASP.net 3.5 web project.

        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"></asp:ScriptManager> 
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always"
            <Triggers> 
                <asp:AsyncPostBackTrigger ControlID="btnSubmit" EventName="Click" /> 
            </Triggers> 
            <ContentTemplate> 
                <telerik:RadEditor  
                    runat="server"  
                    ID="RadEditor1"  
                    Visible="true"  
                    Skin="Default"  
                    ToolbarMode="Default">  
                    <Tools> 
                        <telerik:EditorToolGroup Tag="FirstBar"
                            <telerik:EditorTool Name="Cut" />                     
                            <telerik:EditorTool Name="Copy" /> 
                            <telerik:EditorTool Name="Paste" /> 
                            <telerik:EditorSeparator /> 
                            <telerik:EditorTool Name="Undo" /> 
                            <telerik:EditorTool Name="Redo" /> 
                            <telerik:EditorSeparator /> 
                            <telerik:EditorTool Name="FindAndReplace" /> 
                            <telerik:EditorTool Name="AjaxSpellCheck" /> 
                            <telerik:EditorSeparator /> 
                            <telerik:EditorTool Name="Bold" />                     
                            <telerik:EditorTool Name="Italic" /> 
                            <telerik:EditorTool Name="Underline" />    
                        </telerik:EditorToolGroup>   
                    </Tools> 
                </telerik:RadEditor>                  
            </ContentTemplate>  
        </asp:UpdatePanel> 
        <br /> 
        <asp:Button ID="btnSubmit" runat="server" Text="Submit" CausesValidation="true" />    

3 Answers, 1 is accepted

Sort by
0
Brian
Top achievements
Rank 2
answered on 04 Nov 2008, 10:56 PM
To follow up -- this ONLY happens in Safari/Firefox.
0
Brian
Top achievements
Rank 2
answered on 06 Nov 2008, 01:34 AM
If anyone else has encountered this problem, the fix was quite simple:

UseSubmitBehavior had to be set to false for the btnSubmit:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.usesubmitbehavior.aspx

0
Rumen
Telerik team
answered on 06 Nov 2008, 08:18 AM
Hi Brian,

You can find additional information on the subject in the following KB article: RadEditor Content Not Saved After Ajax Update in Firefox - http://www.telerik.com/support/kb/article/b454K-hee-b454T-ctb-b454c-ctb.aspx.

Best regards,
Rumen
the Telerik team

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