我有一个带有checboxes的分层dynatreee。单击部分选定树的父复选框FIRST选择其所有子项,然后在选择/取消选择所有子项之间切换。如何进行FIRST点击取消选择所有孩子而不是选择它们?
非常感谢
问候,dejan
答案 0 :(得分:1)
在onSelect功能中尝试:
onSelect: function(select, node){
// visit all children of the node and deselect them
node.visit(function(node){
node.select(false);
});
}