Hi
I am using DHTMLX 3.0 for my development. I have a treegrid which is getting loaded dynamically. I have an error scenario where in the control should go to the error method defined. But my code never goes to the the error code. Could you please direct me as to where I could be going wrong?
displayDynGridError = function(type, desc, erData){
alert(1);
var msg = (erData[0]) ? erData[0].responseText : "<framework:text resourceBundleName='ABCResourceBundle' key='abc.GeneralRetrievalError'/>";
msg = (msg != null) ? msg.substring(8, msg.length) : "";
pageMessage.setError(msg);
};
var ajaxurl = "../abc/GS?<%=FrameworkUtils.getAjaxURLParams(request, "getTreeGridData")%>";
ajaxurl += "&TypeName=" + selTypeValue;
if(id != null && id != 'undefined' && id != '')
ajaxurl += "&id="+encodeURIComponent(id);
theGrid.setXMLAutoLoading(ajaxurl);
dhtmlxError.catchError("ALL", displayDynGridError);
theGrid.getGrid().load(ajaxurl);
In case of an error response from the AJAX call, I am not getting the alert message. Please help!