Thank you for your quick answer. The first one works fine


The loading is async, so you need to use onXLE event or next syntax

grid.loadXML(‘data.url’,function(){
    //any command here will be called only after XML loading
    …
});