0 Replies Latest reply on Jun 2, 2011 12:27 PM by fresher4flex

    Change the root of Flex Tree dynamically

    fresher4flex

      I have a Flex Tree constructed dynamically. The dataprovider is xmllistcollection.The user clciks on a button to add an item(node) to the tree.

      when user tries to add 2nd item to the tree I want to create root(with a button) at the top automatically.

      So  a Root need to be created dynamically after 2nd item is added.

      Can someone please help me in getting this.

       

      I am using MXTreeItemrender  as Itemrender and was able to add nodes. But I could not get the third item(I am taking this xml node as Branch and adding) added to the top of the tree.

      Any help is very much appreciated