tree.enableCheckBoxes(true,true); not hiding checkbox

Hi

as per documentation tree.enableCheckBoxes(true,true); should hide all checkboxes and
tree.showItemCheckbox(id, true); should show check box, but it is howing whitr space instead of checkbox image.

Please let me know any thing else require to resolved this issue.

I am having

and actual code

aMenu=new dhtmlXContextMenuObject(‘120’,0,“dhtmlx/imgs/”,‘’);
aMenu.setContextMenuHandler(onButtonClick);
aMenu.menu.loadXML(“menu.xml”);

    	tree=new dhtmlXTreeObject(document.getElementById('ccHierTree'),"100%","100%",0);
    	tree.setOnLoadingStart(lT);
		tree.setOnLoadingEnd(lP);
        tree.enableHighlighting(true);  
        
        tree.enableKeyboardNavigation(true);        
        tree.enableSmartXMLParsing(true);
        tree.enableDistributedParsing(true);
        tree.setImagePath("dhtmlx/imgs/csh_vista/");
        //tree.setSkin("dhx_skyblue");
       	tree.loadOpenStates();   
        tree.enableContextMenu(aMenu);
       // tree.enableCheckBoxes(true);
        tree.loadXML(url, openTopNode);
       
       	tree.enableTreeLines(true);
		//tree.setSerializationLevel(true,true);
		 tree.attachEvent("onBeforeContextMenu", function(itemId) {
		    if (tree.hasChildren(itemId) > 0) {
		        menu.hideItem('outher');
		    } else {
		        menu.showItem('outher');
		    }
		    return true;
		});

You need to use the next approach:

tree=new dhtmlXTreeObject(document.getElementById('ccHierTree'),"100%","100%",0); tree.setImagePath("dhtmlx/imgs/csh_vista/"); tree.enableCheckBoxes(false, true); tree.loadXML(url, function(){ tree.showItemCheckbox(id, true); });
In such order