Expand All - Treegrid

By default how can I set the treegrid property to “ExpandAll”. I would like to expand all the items by default and user can later choose to collapse items as they need.

Thanks

please, try to call the method from a callback function of the load() method, or from the onXLE event:

mygrid.load("treeGris.xml",function(){ mygrid.expandAll(); });

grid.attachEvent("onXLE", function(grid,count){ grid.expandAll(); });