pjekel/cbtree

how to set the checkbox to false in the tree?

Closed this issue · 2 comments

Hi I would like to know how to set the checkbox in the tree , to false programmatically?
The method I used to read is like:-
"registry.byID("tree").attr("selectedItem").checked = false".

Please advise what is the right way?

Try something like this

register.byId("tree").get("selectedItems").forEach(function (node) {
    node.set("checked", false);
});

Hi
It does not work. With the highlighted node,
I am not able to set this (leaf node) to false programmatically.