Hi
I was wondering what the best way is to check if an item is present in a tree before adding it.
Currently i use:
if(!realWorldTree.getParentId(nodeId)) {
but i think this is causing a dhtmlx error.
Thanks
Wimac
Hi
I was wondering what the best way is to check if an item is present in a tree before adding it.
Currently i use:
if(!realWorldTree.getParentId(nodeId)) {
but i think this is causing a dhtmlx error.
Thanks
Wimac
Hi,
you may try to use getLevel method:
if(!realWorldTree.getLevel(nodeId)) {
}