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

Latest RadEditor in AJAX has postback in Firefox 6

4 Answers 41 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dawid Niedzwiedz
Top achievements
Rank 1
Dawid Niedzwiedz asked on 30 Sep 2011, 11:09 AM
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

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 Oct 2011, 02:01 PM
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
0
Dawid Niedzwiedz
Top achievements
Rank 1
answered on 04 Oct 2011, 02:31 PM
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
0
Rumen
Telerik team
answered on 06 Oct 2011, 03:05 PM
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
0
Dawid Niedzwiedz
Top achievements
Rank 1
answered on 06 Oct 2011, 08:01 PM
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
Tags
Editor
Asked by
Dawid Niedzwiedz
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Dawid Niedzwiedz
Top achievements
Rank 1
Share this question
or