ExtJs TreePanel 全选与反选

selectAll: function() {
this.getRootNode().eachChild(function (child) {
child.set('checked', true);
});
},

unSelectAll: function() {
this.getRootNode().eachChild(function (child) {
child.set('checked', false);
});
}

posted @ 2014-01-08 10:05  大新博客  阅读(535)  评论(0编辑  收藏  举报