how to set sorting tree initially, on tree load? ...

how to set sorting tree initially, on tree load?


You can try to use following:


tree.loadXML(“some.xml”,function(){


tree.sortTree(…);


})


The second parameter is function which is called after xml loading


May I use following:



myTreeGrid.attachEvent(“onXLE”,function(a,b){ 
        myTreeGrid.sortTreeRows(0,“str”,“asc”);
   });


Yes, you can this method for treegrid or


myTreeGrid.loadXML(path_to_xml,function(){
myTreeGrid.sortTreeRows(0,“str”,“asc”);


});