Dhtmlxtree with check boxes

hi all
am using dhtmlxtree with check boxes so when i select child node parent node also select but when i reopen same that time it will select all nodes in the tree but my requirement is previously selected nodes should select please help.

tree2 = new dhtmlXTreeObject(“treeBox”,“100%”,“100%”,0);
tree2.setImagePath(“Resources/images/treeImgs/”);
tree2.enableCheckBoxes(1);
//tree2.enableSmartCheckboxes(true);
//tree2.enableCheckBoxes(1,false);
tree2.enableThreeStateCheckboxes(true);
//tree2.enableSmartCheckboxes(true);

tree2.loadXML(‘<%=xmlPath%>’);
var id1=D.buildings;
if(id1!=undefined)
{
var bids =id1.split(“,”);
for(i=0;i<bids.length;i++){
setTimeout(“data('”+bids[i]+“')”, 1000);
}
}
function data(bid3){
//alert(‘data::’+bid3)
var ids=bid3.split(“,”);
//alert(‘data::’+ids)
for(var j=0;j<ids.length;j++){
//alert(‘ids.length’+ids.length)
var tmp=ids[j];
alert(tmp)
if(tmp!=‘’)
//tree2.selectItem(tmp);
tree2.setCheck(tmp,true);
}

	}

thanks
chidananda

Unfortunately we cannot reproduce this issue locally.
make sure that you are having the latest version of dhtmlxtree. You can download the newest version from our site.