I noticed something odd when working with DataView drag and drop.
When the item is dragged from one dataView and dropped into another dataView , the context.new_id (in arguments) is really 1 less than what is actually assigned to the item.
After the item is dropped, if you then wanted to change the back to the source id it’s necessary to do this:
dv.attachEvent("onAfterDrop", function (obj){
if ( /* the you detect a drop in a different dataview */)
obj.to.changeId( parseInt(obj.new_id) +1, obj.start)
}
});
Hi
How can we reproduce this issue?
It this replicates on our online samples?
Or you can provide us a demo to reproduse and inspect this behaviour? docs.dhtmlx.com/auxiliary_docs__ … pport.html