There already are questions how to get custom error handling, with answers, but all those answers use 'external' reference/selector to the grid to make it work, for example:
function onError(e) {
if (e.errors) {
var message = Error:n;
var grid = $('#gridID').data('kendoGrid'); // <<- here
(...)
}
Is it possible to get the reference to the grid from inside the error handling function without providing the selector by hand or 'externally' (because global variables are meh)? That way the error handling script could be totally self-contained.