52,797
社区成员
发帖
与我相关
我的任务
分享
buildColumns : function(){
var colM = new Ext.grid.ColumnModel({
columns : [
new Ext.grid.RowNumberer(),
{header: "ID", dataIndex: 'id', hidden: true,editable : false,width: 50},
{header: "金融机构名称", dataIndex: 'financial_organ_name', width: 200,align: 'left',editor: this.organizationName()},
{header: "金融机构代码", dataIndex: 'financial_organ_code', hidden: true,editor: this.financialCodeCombo()},
{header: "组织机构代码", dataIndex: 'organ_code', hidden: true,editor: this.organizationCodeCombo()},
{header: "网点所属地区", dataIndex: 'branch_district', hidden: true},
{header: "贷款人", dataIndex: 'lender'}
//...
],
isCellEditable: function(col, row) {
if (row%2==0 && col==6) {//替换你想要的条件,这里假设第六列偶数行可编辑
return false;
}
return Ext.grid.ColumnModel.prototype.isCellEditable.call(this, col, row);
}
});
return colM;
}