Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
cancel ultrawebgrid doubleclick
posted

Hi,

I want to ask user confirmation after a delete action (doubleclick on a grid row).
I have the clientscript wired up but after i hit cancel on the confirm pop-up it runs the code-behind event anyway.

Any idea how to stop the event after i click cancel?

JS script
Function UGProducts_DblClickHandler() {
  if ($("input[name$='ActiveButton']").val() == "DeleteProduct") {
    return confirm("Are you sure?");
  }
}

Regards
  Peter