2
我有一个ExtJS组合框,这是一个必填字段,但我不希望显示所需的字段错误消息,直到我尝试提交表单。现在,它看起来像是在键控上发生。我已经将validateOnBlur设置为false,但它仍然显示。我指定了一个vtype,虽然'必需',并且它仍然似乎在控件上触发验证事件,因此vtype被调用。我不希望验证在我手动调用它之前触发。一些代码:。ExtJS关闭字段验证onkeyup
var ddl = new TaskCombo({
id: 'ddl' ,
fieldLabel: 'test',
tabIndex: 1,
selectOnFocus: true,
autoWidth: true,
disabled: true,
forceSelection: true,
validateOnBlur:false,
vtype: 'required',
vtypeText:'This is a required field test',
msgTarget: 'under',
store: new TestStore});
对不起,我真的发现这个我张贴感谢之后很多,虽然,你一直是一个巨大的帮助,到目前为止我所有的问题 – extnoob 2010-07-07 23:12:56
至于2015 - 使用validateOnBlur,改为validateOnChange。 – Zon 2015-02-19 14:52:45