This is response from server to create tree:
var data = {
"id" : "3232",
"item" : [{
"id" : "2169",
"userdata" : [],
"text" : "root",
"item" : [{
"id" : "2170",
"text" : "child",
"item" : null,
"child" : 0,
"userdata" : [{
"name" : "data-title",
"content" : "childTitle"
}, {
"name" : "data-code",
"content" : "child-2170"
}
]
}
],
"child" : 0
}
]
}
tree.loadJSONObject(data);
but dhtmlx tree does not create tree with this data. but when i change root node id to 0, it’s create tree successfully!
is there a way to solve this problem?