之前在网上搜了好久都没找到这个解决方法,然后自己换个想法,在textfield下面添加一个属性listeners,具体是什么意思自己看文档
http://sishuok.com/upload/ext4api/index.html
{
xtype: "textfield",
readOnly: true,
fieldLabel: "省公司线条经理",
width: '47.5%',
name: "LineManager",
listeners: {
'change': function (combox, newValue, oldValue, opt) {
var LineManager = combox.up('fieldset').down('[name=LineManager]');
if (me.IsStart) {//自定义的动态判断条件
LineManager.readOnly = false;
}
}
}
}
新手程序员,如有不对,请告知,勿喷