Simple RadEditor within UpdatePanel problem?

4 posts, 0 answers
  1. Brian
    Brian avatar
    8 posts
    Member since:
    Oct 2008

    Posted 04 Nov 2008 Link to this post

    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" />    

  2. Brian
    Brian avatar
    8 posts
    Member since:
    Oct 2008

    Posted 04 Nov 2008 Link to this post

    To follow up -- this ONLY happens in Safari/Firefox.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian
    Brian avatar
    8 posts
    Member since:
    Oct 2008

    Posted 05 Nov 2008 Link to this post

    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

  5. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 06 Nov 2008 Link to this post

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