Skip to content Skip to sidebar Skip to footer

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:

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"