Hi, We have a large dhtmlxtree (ver 3.6/pro) with 90,000 Nodes (up to 7 levels) & 350,000 leafs. We use dynamic loading, ie
tree1.setXMLAutoLoading, getting the data from an sqlserver database.
It has been working flawlessly for the last year.
We wanted to implement the moving of nodes. To do this, we simply:
tree1.enableDragAndDrop ()
tree1.attachEvent(“onDrag”, treeondrag);
the “treeondrag” function uses an ajax function to move the node in the database from source to target.
That’s all we do.
Nine out of ten times it works perfectly, but on the tenth time we see a duplication in the tree of the node that we have moved.
It is impossible to reproduce consistently, but it ‘might’ happen more regularly with moving nodes to nodes that haven’t been expanded
A reload of the tree always gets rid of the duplication - ie the database is in the correct state after the move.
The symptoms are very similar to viewtopic.php?f=3&t=22194&p=71345&hilit=drag+duplicate#p71345 but the suggested solution wouldn’t work - we don’t call moveItem() at any time
It looks to me like a timing issue, but maybe we have implemented it wrongly. Do you have any suggestions?
Thanks