07-06-2005 01:59 PM
07-06-2005 02:37 PM - edited 07-06-2005 02:37 PM
Hello Sajy,
The key is to correctly set the relative index and relation parameters. In order to insert another parent item, you're basically creating a sibling of an already existing parent or of your root index (0). So you should get the index for one of the parent nodes in the tree, then pass that index or 0 in the relative index parameter, then set the relation parameter to "Sibling".
To change the position of an element in the tree you can use the MoveTreeItem function with the same rules about the relative index and relation parameters.
Thanks.
Message Edited by Wendy L on 07-06-2005 02:39 PM
07-16-2005 02:08 AM
Hello Wendy,
Thank you very much. I have tried the moveTreeItem method and solved the problem.