0
我有兩個複選框列和一個文本區域的網格狀禁止對複選框的點擊一個文本框在網格中EXTJS 4.0
{
xtype: 'checkcolumn',
id: 'app',
text: '<b>Approve</b>',
width: 100,
active : false,
dataIndex: 'appr',
menuDisabled : true,
listeners: {
"checkchange": function (comp, rowIndex, checked, eOpts) {
this.up("myGrid").fireEvent("checkAppr", comp, rowIndex, checked, eOpts);
}
}
}, {
xtype: 'checkcolumn',
id: 'dec',
text: '<b>Decline</b>',
active : false,
width: 100,
dataIndex: 'decl',
menuDisabled : true,
listeners: {
"checkchange": function (comp, rowIndex, checked, eOpts) {
this.up("myGrid").fireEvent("checkDecl", comp, rowIndex, checked, eOpts);
},
"afterEdit":function(roweditor, rowIndex,checked){
this.up("noiApprovalGrid").fireEvent("editDecl",roweditor, rowIndex,checked);
}
}
}, {
id : 'declresn',
header: '<b>Decline Reasons</b>',
dataIndex: 'declRsn',
//disabled : true,
width: 150,
editor: new Ext.form.TextField({
id : 'decltxt',
dataIndex: 'declTxt',
disabled : true,
maxValue: 100000
})
}
在下降複選框的點擊,我需要啓用文本字段。否則它應該是diabled.if我的網格有三行,我怎麼能實現這個功能。請幫忙...
如何寫這個this.up( 「myGrid」)239( 「文本框[=的itemId dcltxt]」)。啓用()函數 – caddie
嗨! user3807185。你解決了你的問題嗎? –