Categories | Question details Back To List | ||
DHTMLXTREE : Last node in treegrid is displayed as document and not as folder Last node in treegrid is displayed as document and not as folder. I am using following code: tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0); tree.setImagePath(document.getElementById('imgTreeHref').href); // /RemoteGadgets/imgs/ tree.enableDragAndDrop(0); tree.enableTreeLines(true); tree.setStdImages("icon_documents.gif","folderOpen.gif","folderClosed.gif"); tree.attachEvent("onClick",onNodeSelect) Please let me know how to fix it Answer posted by Support on Oct 09, 2008 01:47 The image of item defined by - im0-im2 attributes in XML ( or related parameters , in case of adding by js script ) - the child count of item ( item without child will use "leaf" image ) The type of used image is not related to position in hierarchy If issue still occurs for you - please provide a sample of XML used for data loading in your case. Answer posted by Robin on Oct 09, 2008 06:20 Got it...thanks |