1 Reply Latest reply on Dec 4, 2007 1:00 PM by ntsiii

    Determine parent of tree item on click

    garyrgi Level 1

      I have a tree with multiple levels I can easily enough determine the label of the item the user clicked but what I want to do is determine the parents parent

      parent1
      -------child1
      ---------childs1child
      parent2
      -------child1
      ----------childs1child

      When a user clicks on childs1child I want to be able to know that it was parent1 and not parent2's childs1child.

      Anyone have any idea how I could go about doing this on the clickevent?

      event.target.selectedItem obviously returns the right child but from here how do I get the right parent?

      Thanks in advance