Hi Peter,
Thanks for your reply.
I know the ‘checkItem’ method, but I can only do the check action one by one item. what I really want is doing the check action by passing the “source” param (it’s an array object and it contains the checkstate for every items) once.
var source = [
{ label: “Item 1”, expanded: true, items: [
{ label: “Item 1.1”, checked: true },
{ label: “Item 1.2”, selected: true}
]
}]
if I use $(‘#jqxTree’).jqxTree({ theme: theme, source: source, height: ‘300px’, width: ‘300px’ });
“Item 1.1” in the builed tree will be checked. Is there any solutions?