Hi,
When I trying to insert new child node with id -1 in a Tree and then to edit it.
tree.insertNewChild(tree.getSelectedItemId(), -1, “New folder”, 0, “folder_blue.gif”, “folder_blue.gif”, “folder_blue.gif”, “SELECT”, 0);
tree.editItem(-1);
After that the [Enter] button does not fire onEdit event.
And same result when you load a tree from xml file and try to edit the node with id -1
Thanks
Regards
Asen Kirilov
Hello,
the issue is confirmed. It will be fixed in the next tree version.
As the fast solution you can replace -1 with some other value (some random that isn’t equal to ids in your tree) in the dhtmlxtree_ed.js:
please locate the following occurences and replace -1 to the necessary value:
self._stopEdit(-1);