2 Replies Latest reply on Nov 19, 2007 11:44 AM by ebelair

    Tree - Programmatically Open Nodes and Select Items

    ebelair Level 1
      I have a Tree Object in my Flex Application that uses an XMLListCollection from a WebService call as the Data Provider. I am trying to programmatically open specific nodes, and select specific items in the Tree, but I am having no success.

      Basically, I have a set of saved items - parameters - that should be selected by default when the Tree is displayed, and I want the parent nodes of those selected items to be opened, so the user can see them as selected.

      See my code below. I have debugged this, and I have verified that the code in the deepest if statement IS being triggered, but the expandItem() method is doing nothing, and the selectedItems Array is also not being updated.

      Any thoughts?