how to intercept the answer from server before
API server periodically need to reauth and its answer something like the
{
"result":"error",
"error":"auth required"
}
and datagrid do not event onLoadSuccess and do not event onLoadError
( in console: Uncaught TypeError: "Cannot read property 'length' of undefined" )
how to intercept this API server answer ?
UPD:
hmm ... in EasyUI 1.9.15 it turns out that neither 'onLoadSuccess' nor 'onLoadError' is ever called at all
$('#DG').datagrid({
...
,onLoadError: function(){ console.log('DG load error'); }
,onLoadSuccess: function(aData){ console.log('DG load success',aData); }
...
currently possible only by overriding 'loader' ?