Is this a bug? I'am get a node from a tree, remove the node from tree and then insert the same node data at other position in the tree (not at the end of the tree). After that, the node data is added to the end of the roots tree data. I fetch the tree data with the methode 'getRoots'. Should the note data set at the correct position. On a previous version of EasyUi it works. We use the newst version of EasyUi
var selectedNode = selectedNode();
var otherNode = findOtherNode();
var newNodeReportFieldsData = [{
id: selectedNode .id,
text: selectedNode .text,
checked: true
}];
$('#reportFieldsTo').tree('remove', selectedNode.target);
$('#reportFieldsTo').tree('insert', { after: otherNode.target, data: newNodeReportFieldsData });