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

LinkButtons within RadAjaxPanel need double-clicking - why?

2 Answers 52 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
GM
Top achievements
Rank 1
GM asked on 27 Apr 2012, 05:49 PM

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.

2 Answers, 1 is accepted

Sort by
0
GM
Top achievements
Rank 1
answered on 29 Apr 2012, 04:52 AM
I had a check for page refresh on button click event. Apparently, the first button click was somehow causing the page to refresh. Changed the logic to check page refresh - which solved the problem. RadAjaxPanel is innocent!
0
Np
Top achievements
Rank 1
answered on 18 May 2012, 10:23 PM
Hello,

I dont have anything for page refresh and am getting the same issue.

I have a radgrid, with a gridtemplate column and a <asp:LinkButton inside of the gridtemplate.

When I click on the link, I want one user control to show up in a tab menu and another to hide. 

For some reason, even though the command associated with the linkbutton is executed, the second user control is not shown unless I click it twice.

Any ideas?
Tags
Ajax
Asked by
GM
Top achievements
Rank 1
Answers by
GM
Top achievements
Rank 1
Np
Top achievements
Rank 1
Share this question
or