How can I disable a RadButton afert user clicked it and have a postback?

2 posts, 0 answers
  1. john
    john avatar
    67 posts
    Member since:
    Jan 2012

    Posted 19 Sep 2012 Link to this post

    How can I disable a RadButton afert user clicked it and have a postback? I try following code in OnClientClicked event:
     $('#<%=RadButtonProcess.ClientID%>').prop('disabled', true);

    The button is disabled but the postback is not fired. I don't know how to continue the postback after disable the button?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Sep 2012 Link to this post

    Hi John,

    One suggestion is that you can disable the button by time out function. Here is the sample code.
    JS:
    var btn = $find("<%= RadButton1.ClientID %>");
    window.setTimeout(function () { btn.set_enabled(false); }, 10000);

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top