Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tomek on Jun 23, 2007 02:14
open dhtmlx forum
onXMLLoadingEnd

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?

Answer posted on Jun 25, 2007 12:02
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
Answer posted by Nadine (Support) on Dec 04, 2014 22:18

Not much can be said in addition to the reply above, but you also can check calendar events wordpress and ajax treegrid and find out what we have probably missed in our explanation.