Latest RadEditor in AJAX has postback in Firefox 6

5 posts, 0 answers
  1. Dawid Niedzwiedz
    Dawid Niedzwiedz avatar
    7 posts
    Member since:
    Jan 2010

    Posted 30 Sep 2011 Link to this post

    Hi,
    I've just downloaded the latest version (DEMO) of Telerik ASP.NET AJAX controls.
    I wanted to check if there is the option to use UpdatePanel or RadAjaxPanel to submit the content from the editor in AJAX postback.

    Generally it is possible. But it doesn't work in my Firefox. I have Firefox 6.0.2 and each button in my example makes classic postback.
    I did it on the basis of that page.

    Here you have my code. All the 4 clicks make classic postback in FF. I need to use AJAX and it should work in the latest FF, IE (7,8,9), the latest Chrome, and the latest Safari.

    <form id="form1" runat="server">
       <asp:ScriptManager ID="ScriptManager1" runat="server" />
       <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
           <asp:Panel ID="pnlRadEditor" runat="server">
               <div>
                   Standard Button:  <asp:Button ID="btnSave" UseSubmitBehavior="false" runat="server"
                       OnClick="btnSave_Click" Text="Save" /></div>
               <div style="margin-top: 10px;">
                   Image Button: <asp:ImageButton ID="ImageButton1" runat="server" OnClientClick="javascript:__doPostBack(this.id,'');return false;"
                       OnClick="btnSave_Click" ImageUrl="http://www.telerik.com/DEMOS/ASPNET/RadControls/Editor/Skins/Default/buttons/save.gif" /></div>
               <div style="margin-top: 10px;">
                   <telerik:RadEditor ID="RadEditor1" runat="server" EnableViewState="false">
                   </telerik:RadEditor>
               </div>
           </asp:Panel>
       </telerik:RadAjaxPanel>
       <div>
           Standard Button:  <asp:Button UseSubmitBehavior="false" ID="Button1" runat="server"
               OnClick="btnSave_Click" Text="Save" /></div>
       <asp:UpdatePanel ID="UpdatePanel1" runat="server">
           <Triggers>
               <asp:AsyncPostBackTrigger ControlID="Button1" />
           </Triggers>
           <ContentTemplate>
               <div style="margin-top: 10px;">
                   Image Button: <asp:ImageButton ID="ImageButton2" runat="server" OnClientClick="javascript:__doPostBack(this.id,'');return false;"
                       OnClick="btnSave_Click" ImageUrl="http://www.telerik.com/DEMOS/ASPNET/RadControls/Editor/Skins/Default/buttons/save.gif" /></div>
               <div style="margin-top: 10px;">
                   <telerik:RadEditor ID="RadEditor2" runat="server" EnableViewState="false">
                   </telerik:RadEditor>
               </div>
           </ContentTemplate>
       </asp:UpdatePanel>
       </form>

    Regards,
    Dawid Niedzwiedz
  2. Rumen
    Admin
    Rumen avatar
    13084 posts

    Posted 04 Oct 2011 Link to this post

    Hello Dawid,

    I tested the reported scenario and I was unable to reproduce the problem. Could you please see the following video http://screencast.com/t/VNnNiuyo and let me know what I am missing?

    For your convenience I have attached my test project.

    Kind regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. Dawid Niedzwiedz
    Dawid Niedzwiedz avatar
    7 posts
    Member since:
    Jan 2010

    Posted 04 Oct 2011 Link to this post

    You reproduced the problem in fact.

    Try IE, the button btnSave and the method btnSave_Click works 'in AJAX. The request doesn't refresh entire page.
    Check once again how you did it in Firefox. Firefox browser (Opera and Chrome also) refreshes entire page, so we don't have AJAX request.

    Without RadEditor I can make AJAX request in all the browsers. I don't want to refresh entire page on click to save editor content.

    Regards,
    Dawid Niedzwiedz
  4. Rumen
    Admin
    Rumen avatar
    13084 posts

    Posted 06 Oct 2011 Link to this post

    Hello Dawid,

    I am still unable to replicate the reported issue. Could you please see the attached video http://screencast.com/t/JlC4KxMyuv2i demonstrating my test and let me know if I am missing something?


    Greetings,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Dawid Niedzwiedz
    Dawid Niedzwiedz avatar
    7 posts
    Member since:
    Jan 2010

    Posted 06 Oct 2011 Link to this post

    Hi Rumen,

    You are absolutely right. Sorry for that.
    Thanks to you I have learned a few things.
    I was mystified by the page loading icon in Firefox tab.

    Regards,
    Dawid Niedzwiedz
Back to Top