Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by DJay on Dec 08, 2009 10:21
open dhtmlx forum
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.

 

 

Answer posted by Stanislav (support) on Dec 08, 2009 10:29
The loading is async., so expand command need to be executed from after-loading callback

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