How to call a JS method after the TreeGrid is loaded/initi

Hi Folks,

I am using the dhtmlxTreeGrid for one of my page.

I want to understand how can i call a JS method right after the Grid is loaded.
I tried
mygrid.loadXML(“URL”,function(stage,rowId,cellIndex){
alert(mygrid.getRowsNum());
return true;
})

this script excutes before grid loads. and also I want to iterrate every record of my TreeGrid after it is fully loaded.

You code is correct. To call some method after rows are loaded you can use 2nd parameter of loadXML() method or “onXLE” event.
Does rows actually loaded in your treeGrid?