This question is locked. New answers and comments are not allowed.
function onError(e)
{
e.preventDefault();
}
I can run this script, but preventDefault() doesn't work, it still shows default error message. Why?
Another question is about parameter e?
In server side, I throw an exception with some info I want to show in client.
How can I get this info in the cliend side.
[GridAction]
update()
{
throw new Exception("This message I want to show in the client side.")
}
function onError(e)
{
//how to get error message ("This message I want to show in the client side.")
e.preventDefault();
}
Can you tell me how to do it.
Thanks in advance.
{
e.preventDefault();
}
I can run this script, but preventDefault() doesn't work, it still shows default error message. Why?
Another question is about parameter e?
In server side, I throw an exception with some info I want to show in client.
How can I get this info in the cliend side.
[GridAction]
update()
{
throw new Exception("This message I want to show in the client side.")
}
function onError(e)
{
//how to get error message ("This message I want to show in the client side.")
e.preventDefault();
}
Can you tell me how to do it.
Thanks in advance.