Need Workaround For Setenabled(false) Stopping E.processonserver With Devexpress Button
I am using a DevExpress ASPxButton on a webpage of mine, and need a way to stop the user from being able to double click the button. My initial thought was to try: function On
Solution 1:
I searched for some options for your issue, if you can check the links below :
http://www.devexpress.com/Support/Center/Question/Details/Q438771
http://www.devexpress.com/Support/Center/Question/Details/Q273711
http://www.devexpress.com/Support/Center/Question/Details/B132082
Solution 2:
There is easy way how you can accomplish it. On the click event you need to wrap the button table.
functionSaveButtonClick(s,e) {
// Disable Save button in order not to click twice
$("#" + s.uniqueID).wrap("<span style='pointer-even: none; opacity: 0.5;'> </span>");
if (ValidationSummary) {
e.processOnServer = true;
}
else {
e.processOnServer = false;
// Enable Save button
$("#" + s.uniqueID).unwrap();
}
}
This is the easiest way I think.
Post a Comment for "Need Workaround For Setenabled(false) Stopping E.processonserver With Devexpress Button"