RE: [flexcoders] Problem with type casting a TreedataProvider back to array...

2005-10-28 Thread Arunkumar S
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

[flexcoders] Problem with type casting a TreedataProvider back to array...

2005-10-27 Thread Arunkumar S
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

RE: [flexcoders] Problem with type casting a TreedataProvider back to array...

2005-10-27 Thread Matt Chotin
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 =