Hi,
My Name is Sandhya. I am developing an application with WebDataTree. I that, in node dropping, whether I can insert a node between two nodes and not the node to get moved to another node. i.e I have to reorder the nodes(insert between), but node moving to another node should restrict.
Hello Sandhya,
Thank you for posting in our community.
If I understood your requirement right, you want to restrict node moving to another node via drag and drop functionality. In this case I would suggest you to handle NodeDropping client event of the tree and check through get_dragDropPoint() method of the event arguments whether the drop point is 0 (which is the "move to" action) then cancel the event through set_cancel(true) of the event arguments. For instance:
function WebDataTree1_NodeDropping(sender, eventArgs) {
if (eventArgs.get_dragDropPoint() == 0) {
eventArgs.set_cancel(true);
}
Please let me know if you have any further questions.
Sincerely,
Tsanna
I'm just checking if you were able to resolve your issue.
Please let me know if you need any further assistance.
Could you elobarate more on this? How can I get EventArgs if its on the client side part? Also how do I get the drag drop point on the client side aswell?
Regards,
Neil.