This question is locked. New answers and comments are not allowed.
Hi,
I am working on a project where we need to display a heirarchy of treenodes which will represent domain objects. It is a case management system, and the domain object Case (the root of the tree) will be able to have any number of domain objects underneath it (except for another case).
There will be no restrictions on how objects are added. They case be added as children to the case, and as children to each other. So there won't be a nice, neat pre-ordained heirarchy whereby all level 1 nodes are X, level 2 Y, level 3 Z. It will be possible to have X, Y and Z at any of those 3 levels and any can be children of the others. The only node that can't be a child note is the root.
So, think of a picture of a binary search tree with a whole bunch of coloured nodes. Some branches will go 2 levels deep. Some may go 8 levels deep. Imagine that there are 4 colours representing objects of particular types. And then imagine that there is no pattern to the colours of the nodes. Any node can be any colour (except the root< which we'll say is Blue).
Drag and drop functionality is required. So, one node could be detached from its current parent and attached to a different node as a child.
Can you please advise (using pseudo code) how I could go about implementing that. The only thing I can see in the examples which might work is building up a Sitemap in the Controller and binding that. Not sure if Drag and drop would work with that implementation.
I think it would be better to manually build up the TreeViewNodes in the Controller and somehow bind that to the tree.
Let me know if you'd like me to kick off a support ticket for this.
Thanks!
I am working on a project where we need to display a heirarchy of treenodes which will represent domain objects. It is a case management system, and the domain object Case (the root of the tree) will be able to have any number of domain objects underneath it (except for another case).
There will be no restrictions on how objects are added. They case be added as children to the case, and as children to each other. So there won't be a nice, neat pre-ordained heirarchy whereby all level 1 nodes are X, level 2 Y, level 3 Z. It will be possible to have X, Y and Z at any of those 3 levels and any can be children of the others. The only node that can't be a child note is the root.
So, think of a picture of a binary search tree with a whole bunch of coloured nodes. Some branches will go 2 levels deep. Some may go 8 levels deep. Imagine that there are 4 colours representing objects of particular types. And then imagine that there is no pattern to the colours of the nodes. Any node can be any colour (except the root< which we'll say is Blue).
Drag and drop functionality is required. So, one node could be detached from its current parent and attached to a different node as a child.
Can you please advise (using pseudo code) how I could go about implementing that. The only thing I can see in the examples which might work is building up a Sitemap in the Controller and binding that. Not sure if Drag and drop would work with that implementation.
I think it would be better to manually build up the TreeViewNodes in the Controller and somehow bind that to the tree.
Let me know if you'd like me to kick off a support ticket for this.
Thanks!