I’ve got a tree component which works great, but I’m trying to add an item at a particular location (immediately after the item they select) into the tree.
The problem is that I’m trying to add an item within a branch. I’m using myTree.getDisplayIndex(myNode) to get the position within the tree, but it gives the location relative to the entire list, but I need to get the position relative to the parent (which is what myNode.parentNode.addTreeNodeAt is trying to write to)…
Anyone know how I can get the position of the item the user selects relative to it’s branch???
Thanks!!