# dhtmlxtree:api_method_dhtmlxtreeobject_openitemsdynamic [DHX documentation]

DHTMLX Docs & Samples Explorer

Index
dhtmlxtree
API Methods

### openItemsDynamic(list,flag)

Required library edition:
Required library file: dhtmlxtree_xw.js

expand list of nodes in dynamic tree (wait of loading of node before expanding next)

- list - list of nodes which will be expanded
- flag - true/false - select last node in the list

           tree.openItemsDynamic("id_0,id_0_2,id_0_2_3,id_2,id_2_1",true);

The method calls onOpenDynamicEnd event