Hi all,
I have been browsing the forums and stack overflow and can't find a solution to this.
I implemented the generic Kendo "error" js method as shown in the demos in order to show errors on updates, and then I added the error to my modelstate.
When the grid tries to update and an error is thrown - it automatically retries up to 4 time. Is there a way to prevent this retry from happening?
I am using MVC4 - and a standard MVC controller.
Here is my controller error handler:
Here is the js code for showing the error:
The grid uses a standard Async update method in order to perform the update, and this goes to an MVC controller and not an API controller.
My question again: When the grid tries to update and an error is thrown - it automatically retries up to 4 time. Is there a way to prevent this retry from happening?
I have been browsing the forums and stack overflow and can't find a solution to this.
I implemented the generic Kendo "error" js method as shown in the demos in order to show errors on updates, and then I added the error to my modelstate.
When the grid tries to update and an error is thrown - it automatically retries up to 4 time. Is there a way to prevent this retry from happening?
I am using MVC4 - and a standard MVC controller.
Here is my controller error handler:
catch (Exception ex)
{
ModelState.AddModelError("Error", ex.Message);
return Json(ModelState.ToDataSourceResult(), JsonRequestBehavior.AllowGet);
}
Here is the js code for showing the error:
function error(e) {
if (e.errors) {
var message = "Errors:\n";
$.each(e.errors, function (key, value) {
if ('errors' in value) {
$.each(value.errors, function () {
message += this + "\n";
});
}
});
alert(message);
}
}
The grid uses a standard Async update method in order to perform the update, and this goes to an MVC controller and not an API controller.
My question again: When the grid tries to update and an error is thrown - it automatically retries up to 4 time. Is there a way to prevent this retry from happening?