Extjs4,网格渲染器中的控件checkcolumn
如何在rederer功能中选中或取消选中checkcolum? 我认为您应该在模型中定义测试字段,而不是在渲染中Extjs4,网格渲染器中的控件checkcolumn,extjs4,Extjs4,如何在rederer功能中选中或取消选中checkcolum? 我认为您应该在模型中定义测试字段,而不是在渲染中 // Grid Column { header: "Defected", xtype: 'checkcolumn', dataIndex: "test", renderer : this.chTest} // renderer function chTest : function(value, metadata, record){ if(record.get('A') == "
// Grid Column
{ header: "Defected", xtype: 'checkcolumn', dataIndex: "test", renderer : this.chTest}
// renderer function
chTest : function(value, metadata, record){
if(record.get('A') == "Y"){
return true; //I expected the checkbox be checked, but it show letter 'true'
}else{
return false;
}
}