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:
16
-1
43
-1
Thank you in advance
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