We have a dynamic loading tree, and function openItemsDynamic will only open the first node in the path if this path is long. No javascript error. Log shows front end only sends request for XML for the first node.
This function works though when:
– the path was manually expanded before
or
– the path is shorter
Please advice. Thank you!
The list of item ids, the 1st parameter of openItemsDynamic method, must provide the correct order of ids.
The parent must be incuded in list before its child. For example, if you want to open “item 111” in the following structure:
item 1
- item 11
– item 111
the list is “id1,id11,id111”.
If the issue isn’t solved, please provide the example with xml structure and list of ids. We’ll try to help
Thanks Alex. Please check the attachment for details of this problem.
The issue was not reproduced with your xml files and list of the items - all items open.
openItemsDynamic is available only in PRO package.
So, please, provide your ref. number to support@dhtmlx.com and we will send you the sample.
In our xml, we accidently set the attribute “open” to value “1”. After we removed this attribute, even the longest path is not a problem anymore. Thanks to Alex for your help.