http://www.jeasyui.com/tutorial/tree/tree6.phpIn case if I need to use tree with checkboxes I load some items with already checked state.
In order to do this I would propose to update code on this page a little bit.
if (!exists(rows, row.parentId)){
nodes.push({
id:row.id,
text:row.text,
checked:row.checked
});
}
and
var child = {id:row.id,text:row.text,checked:row.checked};