Hello,
as the topic says, when I use a WebDataTree with a client function DragEnter the event argument get_dragDropPoint() is always undefined.
here is some code to show you what I did to find this out:
function webDataTree_DragEnter(sender, eventArgs) {
var dragDropPoint = eventArgs.get_dragDropPoint();
console.log(dragDropPoint);
}
I could quite easily implement this with the missing argument. Any ideas?
Carsten
I have the same problem.I want a tree with 2 levels: folders and files, for example.You can't make subfolders and all files must been inside a folder.You only can't move files not folders.You can move files to another folder or between files.
In the OndragEnter event I can't see dragDropPoint.I only know args.get_destNode() but I don't know if the user is on, after or before to cancel this dropable area.
NodeDropping is not a solution. NodeDropping is too late.
Hello Alexander,
this is not exactly what I wanted, but it does the work.
I was going to cancel the drop while the user is dragging (so that the user can see the "denied" icon), the same way as I can do it with comparing the nodes (or its values etc)...
The user is now able to drop the node but the event is canceled so that nothing happens, so I need to tell the user why nothing happened :(
but anyway, thanks
Hello Carsten,
Did you try to use “NodeDropping” (this function is cancelable) event to see if this function is available there?
http://samples.infragistics.com/aspnet/Samples/WebDataTree/Organization/ClientEventsDragDrop/Default.aspx?cn=data-tree&sid=1d81c73d-7b9d-43b1-b8b1-f52fb26380bc
Actually this function (“get_dragDropPoint()”) returns enumeration with following values – On, After and Before – and is used to determine the position where the nodes are dropped - http://community.infragistics.com/forums/p/52595/273527.aspx#273527
You can see the following post for other possible approaches of achieving the required functionality - http://community.infragistics.com/forums/p/49828/263442.aspx#263442
Let me know if you have further questions.