Single Click not working

4 posts, 0 answers
  1. Chase
    Chase avatar
    12 posts
    Member since:
    Mar 2014

    Posted 17 Apr 2014 Link to this post

    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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Apr 2014 in reply to Chase Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Misho
    Admin
    Misho avatar
    129 posts

    Posted 21 Apr 2014 Link to this post

    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.

     
  5. Chase
    Chase avatar
    12 posts
    Member since:
    Mar 2014

    Posted 21 Apr 2014 in reply to Misho Link to this post

    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.
Back to Top