I have a requirement where particular node with specific key will be at the end(right side) of the level.
When I add link data it adds the node at last position always. Is there any way i can add the node/link before some node.
I have a requirement where particular node with specific key will be at the end(right side) of the level.
When I add link data it adds the node at last position always. Is there any way i can add the node/link before some node.
You can specify a TreeLayout.comparer function. See for example GoJS Trees -- Northwoods Software.
Note that the comparer function only sorts the immediate children of a node. If you really want a particular node to be at the right end of some layer, you will need to make sure that all of the parent nodes, up the chain from that node, sort their children so that the parent nodes are all at the right ends of their respective layers.
Thanks got it working :)