Categories | Question details Back To List | ||
Getting the attached components for layout Hi, 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? Thanks, Vibhav Agrawal Answer posted by dhxSupport on Dec 29, 2009 07:02 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.setImagePath("../../../dhtmlxTree/codebase/imgs/csh_vista/"); dhxTree.loadXML("../common/tree.xml?etc=" + new Date().getTime()); Example is available here http://www.dhtmlx.com/docs/products/dhtmlxLayout/samples/04_components/01_tree.html |