4 Replies Latest reply on Nov 3, 2008 2:15 PM by ericbelair

    Best way to determine if Tree item is descendant of another Tree item

    ericbelair Level 1
      I have a Tree with an ArrayCollection as the dataProvider, using the default "children" property to display the hierarchical structure. I'm looking for suggestions on determining if a specified dataProvider item in the Tree is a descendant (child/granchild/etc.) of another specified item in the Tree - or vice-versa - for the purpose of determining whether or not an item can be dropped in the specified location.

      Any suggestions on the best way to do this?