I want to auto expand my menu treeview immediately on open - the
following code is called from thecreationComplete="initTree();" and
expands the first node only.
Is there a way to expand all nodes - I can't seem to get this to work.
(Other have reported problems so I wonder if this is supported)?
TIA,
Patrick
(The data provider for the tree is an XMLList)
<mx:XMLList id="menuData" >
<node label="Data Management">
<node label="Registration"/>
<node label="Customer List"/>
</node>
<node label="System Administration">
<node label="Add Users"/>
</node>
private function initTree():void {
//Expands first visible Tree Item
menuTree.expandItem(menuTree.firstVisibleItem,true);
}