I found the method as shown below, but it seems that the "casecade" method does not work well, I need to call "reset" several times to uncheck the boxes with the marked children:
reset: function (){
startNode = this.root;
var f = function () {
if (this.attributes.checked) {
this.attributes.checked = false;
this.getUI().toggleCheck(false);
}
};
startNode.cascade(f);
}
source
share