Categories | Question details Back To List | ||
First element in Tree not recognized I have the following problem: My tree is loaded via XML and the nodes are built with AutoLoading. My nodes have userdata loaded but if I try to access some of the elements within the tree I get that the value is undefined for the userdata of the selectedItemId. The XML files shows all the information correct and in most of the times it is the first element of the folder. Is there an error with my XML script? Example: <tree id="12"> <item im0="down.gif" text="Sample1" id="16" child="0"> <userdata name="first_id">16</userdata> <userdata name="second_id">-1</userdata> </item> <item im0="up.gif" text="Sample2" id="43" child="0"> <userdata name="first_id">43</userdata> <userdata name="second_id">-1</userdata> </item> </tree> Thank you in advance Answer posted by Support on Feb 14, 2008 03:41 The syntax is correct, it must work correctly. In each moment getUserData called ? Because loading is async, it possible that you are calling method before data really loaded in to tree. If problem still occurs for you - please send any kind of sample to support@dhtmlx.com |