dthmlxTreeGrid expandAll()


 



How can I laod the tree grid with all its node expanded.



I tried calling  expandAll() function before rendering the tree grid on the page, but it does not seem to works. 



All the items/nodes are in collpase mode although I use  expandAll() whle laoding the tree grid.



 



 

The loading is async., so expand command need to be executed from after-loading callback

grid.load(url,function(){
grid.expandAll();
});