PDA

View Full Version : disable triggerclick combobox



svper
13 May 2013, 7:44 AM
I have a store bound to a combobox. I load this store depending on certain values and i DO NOT want it to reload the store when i expand the list ...

How do i do this ? i've tried things like

onExpand:null onExpand:Ext.emptyFn

onExpand:null works ( the store doesn't reload ) but it throws on error so i'm looking for something decent



{
xtype:'combo',
id:'comboLeverancier',
itemId:'leverancierNr',
disabled:true,
fieldLabel:'Leverancier',
store:'Leveranciers',
displayField:'cname',
valueField:'cid'


},

Malro
14 May 2013, 2:37 AM
If I understand you right


queryMode: 'local'

is want you are looking for

svper
21 May 2013, 3:45 AM
this is not the solution , no matter what querymode i set ... it still query's the db on triggerclick

friend
21 May 2013, 6:04 AM
You may need to set autoLoad: false on the underlying store, but then you'll also be responsible for the initial store load.