1 Reply Latest reply on Mar 13, 2007 1:56 AM by sameerb

    expanding tree node

    Diemos Level 1
      Hi,

      I have a tree that i need to have all node expanded. I managed to get it to expand the first one but not 100% sure on how to loop over the xmlListCollection to get all of them expanded.

      maybe there is an easier way to do this ?

      Thanks.
        • 1. Re: expanding tree node
          sameerb
          Assuming the dataProvider to be an XMLList use

          For expanding all nodes -

          for each(var item:XML in myTree.dataProvider)
          myTree.expandChildrenOf(item,true);


          For collasing all nodes -

          for each(var item:XML in myTree.dataProvider)
          myTree.expandChildrenOf(item,false);


          - sameer