I am using the following example of SmartGWT :
http://www.smartclient.com/smartgwt/showcase/#tree_interaction_drag_nodes
And i want to disable dropping of any node on the root node. How do I do it?
I am using the following example of SmartGWT :
http://www.smartclient.com/smartgwt/showcase/#tree_interaction_drag_nodes
And i want to disable dropping of any node on the root node. How do I do it?
I never did it but I will try with setCanAcceptDrop(false)
, for example:
TreeNode rootNode = new TreeNode();
rootNode.setCanAcceptDrop(false);
rootNode.setID("0");
rootNode.setAttribute("Name","ROOT");
rootNode.setIcon("16/root.png");
tree.setRoot(rootNode);