Are there any limitations on when the onXMLLoadingEnd event will work?
function onXmlLoadingEnd(grid,objcount){
alert(“xml load complete”);
}
function onKeyPressed(…){…}
mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.imgURL = “/images/grid/”;
mygrid.attachEvent(“onKeyPress”,onKeyPressed); //for copy-paste
mygrid.attachEvent(“onXMLLoadingEnd”,onXmlLoadingEnd);
mygrid.loadXML("/test.do?xml=true");
mygrid.enableBlockSelection();
With the above code, I am attaching a event to the XML Load End. Subsequently, I have the grid populate itself via loadXML(). However, my custom function onXmlLoadingEnd never fires. Is this event incorrectly typed in the docos perhaps?
There is a small issue with onXMLLoadingEnd event in dhtmlxGrid 1.3
Please use
mygrid.attachEvent(“onXLE”,onXmlLoadingEnd);
or
mygrid.setOnLoadingEnd(onXmlLoadingEnd);
instead of used syntax, it will work correctly