tags:

views:

9

answers:

0

hello all-

I'm looking to generate a string that shows the path from the upper most branch node to the selected leaf. So for example: The user opens a branch which has two children, which are branches. They then open one of these branches, which have multiple children. These are all leaves. When the user clicks on one of the leaves, I'd like to build a string that would be something like "fruit/apples/golden delicious". Obviously, I can use the parent() method or parent().parent() methods but is there a way to simply find how many parents a child has, just like you can find ho many children a parent has? Thanks.