Hi There,
Im using DHTMLX 3.5
I’ve attached tree to the DhtmlxLayout and is working fine.
But the problem is I can’t open tree items dynamically…
I’ve 3 sections in Layout a,b, and c
a = tree
b = something
c= something
So now my requirement is that when I select something from section b, say item1, then it has to open item1 (dynamically) in the tree of section a. which is not happening.
When you select item1, it returns the list, var openItemList = “1,2,3,4”;
I’m calling dhxTree.openItemsDynamic(openItemList,true); when I select item1 from section b.
But It is throwing an error “TypeError:temp is undefined”
Could you please help me with this??
This is how I’ve configured layout
function treeLayout(cid)
{
globalCID = cid;
dhxLayout = new dhtmlXLayoutObject(document.body, "2U");
var itemA = dhxLayout.cells("a");
var itemB = dhxLayout.cells("b");
itemA.setWidth(300);
itemA.setText("List Of Points");
itemB.setText("Point Map");
itemB.attachObject("Map");
dhxLayout2 = new dhtmlXLayoutObject(itemA, "2E");
itemTop = dhxLayout2.cells("a");
var itemBottom = dhxLayout2.cells("b");
dhxLayout2.cells("a").hideHeader();
dhxLayout2.cells("b").hideHeader();
itemBottom.setHeight(100);
dhxLayout2.cells("b").attachObject(newDiv);
dhxTree = itemTop.attachTree();
dhxTree.setImagePath("../dhtmlx/dhtmlxTree/codebase/imgs/");
dhxTree.enableCheckBoxes(false);
dhxTree.enableDragAndDrop(false);
dhxTree.enableSmartXMLParsing(true);
dhxTree.enableMultiselection(true);
dhxTree.loadXML("LoadTree?Ident="+cid);
dhxTree.setXMLAutoLoading("LoadTree?Ident="+cid);
dhxTree.attachEvent("onClick", clickHandler);
LoadPage();
dhxLayout.setAutoSize("a;b","c;b");
}
Thanks