SmartGWT Ver: 2.5
SmartGwt App Engine Ver: 1.5.4
GWT SDK: 2.4.0
Eclipse Ver: Indigo
Eclipse GWT Plugin 2.4.2
This is a question about how to best use a TreeGrid and Tree where
I have a Tree with a hierarchy of nodes: folders and leaves.
When a node is moved from the unassigned TreeGrid to the assigned TreeGrid, I want to maintain the hierarchical relation of the node being dragged that is if a leave of a parent with many leaves is moved, I want to create a copy of the parental hierarchy of the leaf and put the entire structure into the hierarchy of the assigned TreeGrid.
Example
<code>
unassigned grid
Root
----12
------A
------B
------C
----13
------A
------B
------C
assigned grid
Root (is otherwise empty)
The node 12.B is selected to be moved and the user clicks the right move button.
after move of the struction 12.B
Unassigned TreeGrid
Root
----12
------A
------C
----13
------A
------B
------C
Assigned Grid
Root
----12
------B
Here B has been removed from the Unassigned TreeGrid and moved to the Assigned TreeGrid and the parent 12 has been cloned, B added as a child to the cloned 12 and the cloned 12 and its child added to the Assigned TreeGrid.
How would I be able to accomplish this? Ideas?
SmartGwt App Engine Ver: 1.5.4
GWT SDK: 2.4.0
Eclipse Ver: Indigo
Eclipse GWT Plugin 2.4.2
This is a question about how to best use a TreeGrid and Tree where
I have a Tree with a hierarchy of nodes: folders and leaves.
When a node is moved from the unassigned TreeGrid to the assigned TreeGrid, I want to maintain the hierarchical relation of the node being dragged that is if a leave of a parent with many leaves is moved, I want to create a copy of the parental hierarchy of the leaf and put the entire structure into the hierarchy of the assigned TreeGrid.
Example
<code>
unassigned grid
Root
----12
------A
------B
------C
----13
------A
------B
------C
assigned grid
Root (is otherwise empty)
The node 12.B is selected to be moved and the user clicks the right move button.
after move of the struction 12.B
Unassigned TreeGrid
Root
----12
------A
------C
----13
------A
------B
------C
Assigned Grid
Root
----12
------B
Here B has been removed from the Unassigned TreeGrid and moved to the Assigned TreeGrid and the parent 12 has been cloned, B added as a child to the cloned 12 and the cloned 12 and its child added to the Assigned TreeGrid.
How would I be able to accomplish this? Ideas?
Comment