DataView onDrop new_id

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

I am emailing a link which has a working demo.

Use chrome and watch the console log. Notice that obj.new_id is different than the id after drop.

Problem confirmed and fixed.
Fix will be available as part of the next version. If you need a fix asap - please open ticket in the support system.

Ok great thank you.