Hi,
How can I disable error to get to the global error handlar, when we define a local error handle for Kendo grid? I've tried to use e.preventDefault(), but it doesn't work.
Global error handling
$(document).ajaxError(
function
(e, request) {
setError(request);
});
Example of local error handling
<script>
function onError(e, args) {
//TODO: Stop error from being propagated to global .ajaxError
HandleError(e);
}
</script>
@(Html.Kendo().Grid<Premise>()
.Name(
"grdName"
)
<-- SNIP -->
.DataSource(ds => ds
.Ajax()
<-- SNIP -->
.Events(e => e.Error("onError")
)
)Any ideas on how to solve it?