jQuery UI Widgets › Forums › General Discussions › Navigation › Tree › DragDrop bug for jqxTree while getting tree items by ajax
This topic contains 4 replies, has 2 voices, and was last updated by Dimitar 11 years, 3 months ago.
-
Author
-
I create a jqxTree, which enables allowDrag and disables allowDrop, and loads tree items from ajax.
But when I dragged the tree item, there’s a problem came out, that the item flew away at the moment some item finished loading its subtree!
Here’s the picture:

And here’s the sample code on jsfiddle:
DragDrop bug for jqxTreeHelp me out plz!
Let me make it clear:
The bug comes out by 2 steps:
1. Expand the item and drag the item itself slightly at the same time (the `drag’ operation is necessary);
2. After the subtree of the item is expanded (or loaded), drag the item again, the item would fly away out of the box.or, another version happened with the following steps:
1. Expand the item and start dragging the item itself at the same time, this time, hold it and no releasing (no `dragEnd’ event happened);
2. After the subtree of the item is expanded (or loaded), drag the item again, the item just move a little offset and never allow to move any more
Thanks regards,
KrimeHello Krime,
Unfortunately, item drag and drop are not supported when the tree is loaded via Ajax.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/So I needa stop drag&drop while loading? or give a piece of loading animation to prevent user drag&drop?
Hi Krime,
What I meant is drag and drop are not supported for such Ajax-populated trees, no matter when you start/end dragging an item. The functionality may work, but it may also result in an unexpected behaviour.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.