3state check box tree ignoring open parameter

I’m trying to display a tree with checkboxes where nearly all the checkboxes are checked by default. I’m including open=“0” in each folder with children but they are open by default when loaded. Any ideas what I’m doing wrong?

dhxTree = dhxLayout.cells(“b”).attachTree();
dhxTree.loadXML(“tree.xml?etc=” + new Date().getTime());


If you want branch to be closed, you should remove checked=“0” attribute

I figured it out and it doesn’t appear to have anything to do with the checked attribute. The presence of an open attribute forces the folder to be open when initially loaded, it pays no attention to the value assigned. This is a bit odd but it’s clearly documented (http://docs.dhtmlx.com/doku.php?id=dhtmlxtree:syntax_templates), my bad.