dhtmlxTree

how to render dhtmlxTree with some of the checkboxes checked by default. I tried this

tree.setCheck(1607,true);

1607 is the id of any item to be checked. this is not working .

any idea will be greatful.

Thanks

Naga

Please check if you are calling this method after tree was fully loaded:
tree.loadXML(url,function(){
tree.setCheck(1607,true);
})