when using draganddrop i want to fix the depth of the nodes it should allow even though i set maxdepth to 1 or 2 its allowing it to add nodes below that level not sure if i am doing right and one more thing is i hav e 2 trees one is the source nodes and the other is the selected nodes but if i am trying to change the order in the selected nodes i am getting javascript error please kindly let me now if this is a known issue and any remedy is appreciated.
Regards,Raghu
Hello Raghu,
I have created a private support case CAS-61491-GKR9J0 in order to get more details on this issue. I will update the forum once any resolution is reached.
Thanks,
Bhadresh
Please let me know to which emailid shall i send the information please.
Regards,
Raghu
I am following up to see if you were able to resolve the JavaScript exception you have mentioned above.
If the issue is still present, provide me with the screenshot of the error and markup of the page so I may look in to this.
I forgot to add that when you have After or Before, you are doing drop insertion.
Lubomir
Hi Raghu,
you can check the location of the drop in the NodeDropping event by using the following:
var dropPoint = args.get_dragDropPoint();
if (dropPoint == $IG.DragDropPoint.On) {
// you have dropped over the node in args.get_destNode();
} else if (dropPoint == $IG.DragDropPoint.After) {
// you have dropped after the node in args.get_destNode();
} else if (dropPoint == $IG.DragDropPoint.Before) {
// you have dropped before the node in args.get_destNode();
}
Hope this helps.