PDA

View Full Version : How to disable the loading mask on Combobox



ci11111
6 Apr 2012, 8:51 AM
fieldTest = Ext.create('Ext.form.ComboBox', { name : 'title',
emptyText : 'Titolo',
selectOnFocus:true,
hideTrigger:true,
flex: 2
})
33704

I'm using a combobox, like a textfield, for a stupid reason *
I would like to disable the loading mask that pops up when the content is changed,, I have tried setting store to null, but that doesn't change anything


*when using a textfield and emptyText, the placeholder is submitted in the form, but doesn't happen with combobox


Edit: this works with


displayField : 'text',
valueField : 'value',
store : Ext.create('Ext.data.Store', {
fields : [ 'text', 'value' ],
data : []
})
but there must be an easier way

scottmartin
6 Apr 2012, 9:17 AM
Please try queryMode: false

Regards,
Scott.

ci11111
6 Apr 2012, 9:32 AM
oups, pressed accepted answer too fast, because queryMode: false doesn't work

scottmartin
6 Apr 2012, 9:40 AM
I will take another look.

Scott.

scottmartin
6 Apr 2012, 10:59 AM
Try this instead:
listConfig: { loadMask: false }

Regards,
Scott.

ci11111
6 Apr 2012, 11:17 AM
right you got it,
I tried loadMask: false before, but that has to be passed to the list