Hello.
I checked the drag drop example demo and the code does a "deep copy" of the nodes, meaning that it moves the node and every child in it.
I checked the drag drop example demo and the code does a "deep copy" of the nodes, meaning that it moves the node and every child in it.
destinationNode.get_nodes().add(sourceNode);
My code:
function ProcessBookOperations (sourceNode, destNode, dropPosition)
{
var sourceType = GetNodeType(sourceNode);
var destType = GetNodeType(destNode);
if (sourceType == "mi" && destType == "me")
{
destNode.get_nodes().add(sourceNode)
destNode.set_expanded(true);
}
}
It moves the node but not its childs, actually I just noticed that is does move the node with the childs but the '+' symbol does not appear. If I get another node and hold it on top of it, it automactly Loads on demand then expands the node showing the childs. How can I solve this?
Btw, is there any way to remove this expand '+' symbol
programmatically, e
ven if it has any childs in it?
Thanks!