DHTMLXTREE : Last node in treegrid is displayed as document

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/





Please let me know how to fix it

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.

Got it…thanks