I have the following code to initialise a tree which is called on body load of html document.
function setuptreePriceBands()
{
trPriceBands = new dhtmlXTreeObject("treePriceBands","100%","100%",0);
trPriceBands.setSkin("dhx_skyblue");
trPriceBands.setImagePath("/javascripts/dhtmlx/dhtmlxTree/codebase/imgs");
trPriceBands.enableTreeImages("true");
trPriceBands.enableTreeLines("true");
trPriceBands.insertNewChild(0,1,"Zones",0,0,0,0);
trPriceBands.insertNewChild(1,"12","Western Europe",0,0,0,0)
trPriceBands.insertNewChild(1,"13","Eastern Europe",0,0,0,0)
trPriceBands.insertNewChild(0,"2","Countries",0,0,0,0);
}
However this produces the following when rendered:
Zones
Western Europe
Eastern Europe
Countries
Each item is below the previous one even though Western Europe and Eastern Europe should be indented under Zones and there are NO IMAGES showing anywhere. As it is rendering it appears correctly for a second with indenting and place holders for the images but they all disappear.
I am using dhtmlxSuite_v26_PRO_100722. I have included the correct css file and also the correct images path.
I am surely doing something simple wrong but can’t see it. Thanks for your help.
I don’t know whether this is relevant but I can’t see any of the ‘trees’ in the samples included with the software either.