I'm trying to keep the selected Tree item selected after
updating the dataProvider.
I created an custom Tree component that has a public function
that i build quite analog to the funcion expandAllChildren()
of Flex Tree Class.
I'm creating a simple Array that contains all parent items of
the selected item
in the right order [ item_lvl0:XMLList, item_lvl1:XMLList,
item_lvl2:XMLList, .... , selectedItem:XMLList].
now I'm looping over this array and do an expandItem() for
every single item.
expandItem() returns before actually creating a list or
the internal isBranch() func returns false and that's what
my Items are not recognized as branches, so its not getting
All item are XMLLists and definately have children, so i
think it should be a branch..
Has anyone else tried something similar to this?
Help would be appreciated.
private function expandAllParent():void
var i:int = 0;
var parentItem:Object = tmpArray;
trace(isBranch(parentItem)); // false