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

Single Click not working

3 Answers 187 Views
Button
This is a migrated thread and some comments may be shown as answers.
Chase
Top achievements
Rank 1
Chase asked on 17 Apr 2014, 04:19 PM
I've set the singleclick property of a RadButton as follows:

<telerik:RadButton runat="server" ID="btnSubmitRequest" Text="Submit" SingleClick="true"  SingleClickText="Submitting..." OnClick="btnSubmitRequest_Click" ValidationGroup="required" />

However, the button isn't getting disabled, and, upon viewing the page source, I noticed that the "onclick=disableButton" function isn't there at all. I've used SingleClick buttons in my code before in this exact same manner, and never had a problem before.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Apr 2014, 07:46 AM
Hi Chase,

Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample project which works fine at my end. Please provide your full code to replicate the issue for further help.

Thanks,
Shinu.
0
Misho
Telerik team
answered on 21 Apr 2014, 01:06 PM
Hi,

The RadButton single click functionality is also described in more details in the following help article:
http://www.telerik.com/help/aspnet-ajax/button-single-click.html as well as shown on the following demo:
http://demos.telerik.com/aspnet-ajax/button/examples/singleclick/defaultcs.aspx

If you have further questions, don’t hesitate to contact us.


Regards,
Misho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Chase
Top achievements
Rank 1
answered on 21 Apr 2014, 02:58 PM
Got this figured out - turns out that the Single click feature was actually working, but that the submit was happening so quickly that I wasn't able to see the button being disabled and the text changing. However, when I disabled AutoPostBack I was able to see that the single click feature was actually working.
Tags
Button
Asked by
Chase
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Misho
Telerik team
Chase
Top achievements
Rank 1
Share this question
or