dhtmlxtree

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%>');
		//alert('xmlPath'+xmlPath)

thanks
chidananda

Please check following answer viewtopic.php?f=3&t=13659