Categories | Question details Back To List | ||
openItemsDynamic fails to function properly if path is long 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! Answer posted by Alex (support) on Apr 09, 2009 06:56 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 Answer posted by Yingle on Apr 09, 2009 12:18 Thanks Alex. Please check the attachment for details of this problem. Answer posted by Alex (support) on Apr 10, 2009 08:19 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. Answer posted by Yingle on Apr 14, 2009 08:02 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. |