ExtJS turning off field validation onkeyup
I开发者_如何学Python have an ExtJS combobox, which is a required field, but I don't want the required field error message to show up until I try to submit the form. Right now, it is happening on keyup it seems like. I have set validateOnBlur to false, but it still shows up. I am specifying a vtype though, 'required", and it still seems to firing the validate event on the control and therefore the vtype gets called. I don't want the validate to fire until I manually call it. Any help? Here is some code:
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});
Try adding validationEvent:false
(docs).
精彩评论