or
<
asp:ScriptManager
id
=
"scriptmanager1"
runat
=
"server"
/>
<
asp:content
id
=
"content1"
contentplaceholder
=
"contentplaceholder1"
runat
=
"server"
>
<
asp:updatepanel
id
=
"up1"
runat
=
"sever"
<telerik:RadGrid
id
=
"radgrid1"
...>
<
exportSetting
ignorePaging
=
"true"
openInNewWindow
=
"true"
>
<
pdf
pageheight
=
"297mm"
pagewidth
=
"210mm"
</exportSetting>
<
masterTableView
commanditemdisplay
=
"top"
>
<
command
itemtemplate>
<
asp:imagebutton
id
=
"downloadpdf"
runat
=
"server"
commandname
=
"exporttopdf"
imageurl
=
"pdf.jpg"
backcolor
=
"white"
>
</
command
itemtemplate>
......
</
asp:updatepanel
>
</
asp:content
>
)
I am using asp:UpdateProgress
control to show progress during a button click. I am using telerik controls to ajaxify the submit button. The code sample is below:
<telerik:RadAjaxPanel ID="RadAjaxPanel4" runat="server">
<div class="customButton">
<asp:LinkButton ID="lbtnSave"
OnClientClick="return Page_ClientValidate();"
runat="server" OnClick="lbtnSave_Click"
CausesValidation="true">
<img src="../admin/images/icons/16x16/save.png" />
Save
</asp:LinkButton>
<div class="customButton">
</telerik:RadAjaxPanel>
My issue:
When I surround the button with the telerik:RadAjaxPanel
, I have to click on the button twice. If I remove the panel, the button submits in one click. Is this happening because of the OnClientClick or one of the other LinkButton attributes or because of the surrounding telerik:RadAjaxPanel
? Please help.
EDIT 04 27 12 :: 03:08PM
I tried changing the LinkButton to Button - but still the same problem.
Removing the OnClientClick attribute did not help either.