Changing parent of a node in the tree table [message #1110106] |
Mon, 16 September 2013 11:33 |
Ali Malik Messages: 27 Registered: August 2013 |
Junior Member |
|
|
Hi,
I have populated my Tree Table, with some nodes.
Before adding these nodes to the table, I assign them their parent (if any), then add them to the Table.(event list actually).
For example:
Node node = new Node();
node.setParent(parentNode);
eventList.add(node);
Something like that!
Anyways, what I need to do is that when I change its parent to some other node, it should be a child of some other node and reflected in the Tree Table.
But it stays the child of the same node.
For example:
Before
-Parent1:
--Child1
--Child2
Child2 is child of Parent1.
After I make Child2 a child of Child1, the result stays the same:
-Parent1:
--Child1
--Child2
Instead of:
-Parent1:
--Child1
---Child2
Is this some restriction in the table, or am I doing something wrong?
Regards,
Ali Ahmad Malik
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03982 seconds