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

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

1 Answer 201 Views
Button
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 19 Sep 2012, 07:36 AM
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?

1 Answer, 1 is accepted

Sort by
1
Shinu
Top achievements
Rank 2
answered on 19 Sep 2012, 09:38 AM
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.
Tags
Button
Asked by
john
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or