Thanks for your reply Matt...
I tried your code, initially the tree doesn't appears and when i change
dataProvider= {treeDetails.children}
the tree is loaded without any problem, but iwhen i assign
var arr:Array = treeCmp.dataProvider.getProperty(“children”);
the arr is shown as
Hi all,
I am assigning an arrayas TreedataProvider.
When i'm moving the position of nodes of the tree (using addTreeNodeAt / removeTreeNodeAt), the dataProvider is not updated to the changed nodes, so i'm explicitly typecasting and assignig back to array.
This seems to behave abnormally
A TreeDataProvider cannot be an array. It
has to be a single object that has a child array. So try creating an object
like this:
Var treeDetails:Object = {label: root};
treeDetails.children = treeList;
get the array of details back:
var arr:Array =
3 matches
Mail list logo