Single Click Behavior

I had an issue with the Telerik ASP.NET RadButton yesterday, I have a button on a web form and the process behind the button is several seconds, and users were clicking on it multiple times. 

I searched the web for answers and mostly found JavaScript solutions, the best seemed to be putting

OnClientClicked="this.disabled=true;

in the markup. This worked, but for some odd reason it keeps the AJAX Autopost from working. 

I submitted a support case, and Telerik reminded me that...

RadButtons have a 'single click' attribute:

<telerik:RadButton runat="server" ID="btnDocusignQuote" SingleClick="true" Text="Docusign Quote"></telerik:RadButton>

You can look up the particulars on line, mainly I'm noting this here so I can remind myself quickly if I need this again. 

 


RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences