This is a migrated thread and some comments may be shown as answers.

Drag and drop with remote datasource bug.

1 Answer 111 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Iain
Top achievements
Rank 1
Iain asked on 17 Jul 2013, 04:36 AM
Im pretty sure i have found a bug with the treeview.

Here is a fiddle that illistrates the problem: http://jsbin.com/ocaraj/3/edit

To see the bug open up a console window and drag a node into a node that you have not loaded,  ie. the nodes children have not been loaded. In the 'dragend' event (and possibly others) the e.sourceNode is null if you drop it on an unloaded node. But if the node has been loaded it works as normal, ie e.sourceNode is the dropped node.

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 18 Jul 2013, 09:02 AM
Hello Iain,

Indeed, the dragend event is triggered before the new parent item is fetched, so the source node is not yet appended. This brings up the deeper issue with the append method -- it returns null when you append a node to an unfetched parent. We have introduced a new parameter for the append method, and fixed the bug for the next internal build.

Regards,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Iain
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or