Checked in Checkbox Not work

I writng program in JSP.


when i try write this code dhtmlxTree show all checkboxes but it’s not check in “rc”,

can you show me any idea will be greatful ?

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

if you have some sample serializeTree() pls give me, Pattakorn E-Mail



The loading is async. In above code you are calling setCheck before data is really loaded in the tree.
You need to change the code as

// executed after data loading