Hello,
i have a strange behavior on assigning a item a second time.
Starting situation: I have a jqxTree with several items like this:
– apple
– oracle
– microsoft
I drag and drop one item in another like this:
– apple
|- microsoft
– oracle
That works fine. Now I want that the item (microsoft) would be copied and the copy should be assigned to apple and the original remains in its original position.
I have implemented the following (simple modified from the sample code ‘drag and drop’):
$('#treeA').jqxTree({ allowDrag: true, allowDrop: true, height: '300px', width: '220px',
dragEnd: function (item, dropItem, args, dropPosition, tree) {
$('#treeA').jqxTree('addTo', dropItem, item, true);
return false;
}
});
Until then it works but if i drag the microsoft item a second time, the value ‘item’ is null.
Any suggestions? Thanks in advance.
Emanuel