我用Extjs编写了一个动态树,前面带有复选框,但是为什么我的复选框不能选中,求大神指教啊???
var tree = Ext.create('Ext.tree.TreePanel', {
width : 200,
height : 300,  
store : store,
enableDD:true,
autoScroll:true,
rootVisible : false,
enableAllCheck:true,
useArrows:true,
renderTo : rightarea_div
});

tree.on('checkchange', function(node, checked) {   
node.expand();   
node.attributes.checked = checked;   
node.eachChild(function(child) {   
child.ui.toggleCheck(checked);   
child.attributes.checked = checked;   
child.fireEvent('checkchange', child, checked);   
});   
}, tree);
数据源为: boolean isLeaf = model.getIsLeaf() == 1 ? true : false;
item.put("text", model.getName());
item.put("checked",false);
item.put("leaf", isLeaf);
item.put("id", model.getClassId());
item.put("parentId", model.getParentId());
打印数据源有checked:true;这个属性了extjstree   复选框 动态