ExtJS关闭字段验证onkeyup

时间:2010-07-07 21:42:30

标签: extjs

我有一个ExtJS组合框,这是一个必填字段,但我不希望在我尝试提交表单之前显示必填字段错误消息。现在,它似乎发生在keyup上。我将validateOnBlur设置为false,但它仍然显示出来。我指定一个vtype但是'required',它似乎仍然在控件上触发validate事件,因此调用vtype。我不希望验证在我手动调用之前触发。任何帮助?这是一些代码:

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});

1 个答案:

答案 0 :(得分:2)

尝试添加validationEvent:falsedocs)。

相关问题