Event on load Grid Error

If i want to have some function,When my dhtmlx grid load xml error. How i can do.

You can catch error and prevent error message by using default error handling routine.

function myErrorHandler(type, desc, erData){
//custom code can be placed here
return false;
dhtmlxError.catchError(“LoadXML”, myErrorHandler);

The array contains additonal data related to error
erData=[xmlHttpRequest , object]

First element - xmlHttpRequest object, which contain all data requested from server.
Second element - dhtmlx object, component which throw error while loading.

You can get any additional error info by checking xmlHttpRequest properties (xmlHttpRequest.responseText for example )