Getting the attached components for layout


I have a DHTMLXLayout component in which i have attached a tree component in one of the cells.

Now in want to get that tree out of the layout.

When i try to get it using dhxLayout.cell(“a”) and try to apply any of the APIs of tree, it gives exception saying ‘Property does not exist on the object’

Is there any way to get the tree (or any attached components) component out of the layout and call the API calls on those methods?


Vibhav Agrawal

While attaching Tree to the Layout you should create variable which will be reference to the dhtmlxTree object:

dhxLayout = new dhtmlXLayoutObject(“parentId”, “3L”);
dhxTree = dhxLayout.cells(“a”).attachTree();
dhxTree.loadXML("…/common/tree.xml?etc=" + new Date().getTime());

Example is available here … _tree.html