Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by tempelakos on Sep 29, 2009 16:35
open dhtmlx forum
dhtmlxTree Error type: Datastracture XML refers to not existing parent

Hello
I am having a problem using dhtmlxTree using data processor and data connector.
I get
Error type: Datastracture
XML refers to not existing parent

the xml connector produces is :
<tree id="0">
<item id="38" text="kama" child="-1"/>
</tree>
any help???
Answer posted by Stanislav (support) on Oct 01, 2009 08:39
Which code you are using on client side. Such error occurs when incoming xml can't be linked to existing tree elements. 
While initialization tree, you have a code similar to the next

var tree = new dhtmlXTreeObject(some_object,"100%", "100%", 0);

the last parameter is ID of virtual root, which must be equal to the ree@id attribute in XML response.