I want to run some function just after mygrid.loadXML has finished loading.
Something like onload event or listener.
I can’t find how to do this.
Try to use such form:
grid.loadXML("grid.xml", function() {
// function needed to be executed after the XML is loaded
});