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.
Regards,
Dawid Niedzwiedz
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