Categories | Question details Back To List | ||
Want to show number Of Nodes To subnode of node inDHTMLX Tree Dear Sir , I got the following tree structure with number of nodes to each node. Class1 ---Subclass 1 ---Req 1 ---Req 2 ---Req 3 ---Subclass 2 ---Req 1 ---Req 2 ---Subclass 3 ---Req 1 ---Req 2 But I want to show the Class1[7] requs. and Subclass 1 [3] ,Subclass 2 [2], Subclass 3 [2] Now It showing Class1[3] , and Subclass 1 [3] ,Subclass 2 [2], Subclass 3 [2] I used following code tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0); tree.setImagePath("dhtmlxTree/samples/images/"); tree.setIconSize(18,18); tree.enableMultiLineItems("320px"); //tree.enableSmartXMLParsing(true); tree.setChildCalcMode("child"); tree.enableIEImageFix(true); tree.enableAutoTooltips(true); tree.setOnClickHandler(function(id){openPathDocs(id);}); tree.setXMLAutoLoading("fmea_tree.jsp?project_id="+project_id+"&sys_id="+sys_id); tree.loadXML("fmea_tree.jsp?project_id="+project_id+"&sys_id="+sys_id,autoselectNode); tree.enableDistributedParsing(true,200,400); Please do the needful. Answer posted by Support on Sep 10, 2008 07:42 If you are using setXMLAutoLoading and XML loaded by levels - the component doesn't know real count of child items, because they not loaded from server yet. In such situation component uses value of "child" attribute as count of child items. So, if grid has <item text="Class" child="7" It will render as Class [7] |