Categories | Question details Back To List | ||
TreeGrid http://dhtmlx.com/docs/products/kb/index.shtml?s=normal&q=7096&a=10866 Can you tell me what is wrong with this code that it is not displaying the plus sign if there is only one parent node? Below is the code that i have used to construct the tree XML string used is <?xml version=\"1.0\" encoding=\"UTF-8\" ?> and the javascript code is function doMTDTreeGrid(){ mtdTreeGrid = new dhtmlXGridObject("treeGrid"); mtdTreeGrid.selMultiRows = true; mtdTreeGrid.setImagePath("/codebase/imgs/icons_greenfolders/"); mtdTreeGrid.setHeader("Header1,Header2,Header3,Header4"); mtdTreeGrid.setInitWidths("*,*,*,*"); mtdTreeGrid.setColAlign("left,right,right,right"); mtdTreeGrid.setColTypes("tree,ro,ro,ro"); mtdTreeGrid.enableTreeCellEdit(false); mtdTreeGrid.setSkin("light"); mtdTreeGrid.enableTreeGridLines(); mtdTreeGrid.init(); mtdTreeGrid.loadXMLString(mtdXml); }
Answer posted by Support on Dec 24, 2008 05:28 XML , which you are using is incorrect, it must have next top element <rows parent="0"> <row id="1"> In current xml you are reffering for some unkwnow element "a" |