2 Replies Latest reply on Nov 27, 2007 5:48 AM by ebelair

    Problem Expanding Tree Nodes Programmatically

    ebelair Level 1
      I have a Tree in an MXML Component with an XMLListCollection Data Provider. I want to programmatically select a node that is 3 levels deep in the calling Application. In order to do this, I also need to expand the parents of that node.

      The code below demonstrates how the Tree's Data Provider is populated, and the creationComplete event calls the selectItem Function. However, in the select Item function the expandItem() method does not work, even though the object it is trying to expand IS found in the Tree's Data Provider.

      Any clues on what i can do to fix this?

      Feel free to compile the attached code (as two separate files in teh same Flex Projcet) and see for yourself.

      Thank you.

      Eric.