基于extjs中的复选框将字段的allowInvalid更改为false

时间:2012-09-07 18:02:50

标签: extjs

我在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?

提前致谢

0 个答案:

没有答案