1 Reply Latest reply on Jun 28, 2007 1:35 AM by Newsgroup_User

    open Node in Treee componenet

    Level 7
      I want to go to select a particular node of the tree component when i click
      a button.
      The tree is having dataProvider XML with 3 levels of nodes .that is node
      inside node inside node type structure
      <node>
      <node1 attribute="................." >
      <node11>
      <node111>
      <node1111></node1111>
      </node111>
      </node11>
      </node1>
      <node2 attribute="................." />
      <node3>
      <node31>
      <node311></node311>
      </node31>
      </node3>
      </node>
      The problem is that the node dosent get selected in one go if its parent
      nodes are not open.
      I am using myTree.setIsOpen and myTree.selected but the node doesnt get open
      if parebt nodes arenot visible.Someting to do with getDisplayIndex and index
      of nodes.

      Can anyone suggets.


        • 1. Re: open Node in Treee componenet
          Level 7
          I have solved it myself !!!!!!!!!!!!!!!!!!!


          "flashcrazy" <aparna@macromedia.com> wrote in message
          news:f5thk6$sok$1@forums.macromedia.com...
          >I want to go to select a particular node of the tree component when i click
          >a button.
          > The tree is having dataProvider XML with 3 levels of nodes .that is node
          > inside node inside node type structure
          > <node>
          > <node1 attribute="................." >
          > <node11>
          > <node111>
          > <node1111></node1111>
          > </node111>
          > </node11>
          > </node1>
          > <node2 attribute="................." />
          > <node3>
          > <node31>
          > <node311></node311>
          > </node31>
          > </node3>
          > </node>
          > The problem is that the node dosent get selected in one go if its parent
          > nodes are not open.
          > I am using myTree.setIsOpen and myTree.selected but the node doesnt get
          > open if parebt nodes arenot visible.Someting to do with getDisplayIndex
          > and index of nodes.
          >
          > Can anyone suggets.
          >