is there a way to load a treegrid , having all nodes expande

I load a page containing a tree grid. The grid is loaded having all nodes collapsed.

Is there a way to load the grid having all nodes expanded?

You can expand all nodes after loading as


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