我在extjs网格中有一个文本字段,如下所示:
part : {
fieldLabelToken: 'label.Structure.InstallRemoveItem.Part',
mapping : 'removedPart.part',
ref : '../../../removedPartField', allowInvalid : true,
textOnly :config.textOnly,
listeners: {
'select':function(combo,rec,index){
if(!params.viewOnly && !config.textOnly){
this.refOwner.removedTrackedField.setValue(rec.get("tracked"));
this.refOwner.transformPosInfoFields(rec.get("tracked"));
delete this.refOwner.selectedItemId;
}
}
}
}
我在同一表格上有复选框,如下所示:
{
fieldLabelToken: 'label.Structure.Maintained.Structuremaintenance.InstallRemoveItem.PendingPartRemove',
mapping : 'pendingPartRemove',
xtype: 'checkbox',
ref : 'pendingPartRemove',
disabled : false
}
如果单击InstallRemvecheckbox,如何将part字段的allowInvalid更改为false?
提前致谢