-
24 Nov 2008 11:05 PM #1
ComboBox selected value not set when changing field focus
ComboBox selected value not set when changing field focus
Hello list,
I'm facing a little problem with combobox.
I've a form with multiple fields , i've a combo defined as :
When the user enter a text to filter the combo store, and one value is returned , the combo field is populated, but if the user use tab key to pass to the next field without explicitly clicking in the combo field , the value is not defined correctly.Code:{ xtype: 'combo', id: 'cartes_cb', fieldLabel: 'carte', hiddenName: 'numero_carte', selectOnFocus:true, displayField: 'numero', valueField: 'numero', iconClsField: 'id_membre', store: this.cartestore, anyMatch: true, anchor:'100%', typeAhead: true, triggerAction: 'all', allowBlank: false }
Is this a known problem?
Maybe someone knows a trick for this?
Thanks in advance
Spotk
-
24 Nov 2008 11:10 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Some notes:
Code:{ xtype: 'combo', id: 'cartes_cb', fieldLabel: 'carte', //hiddenName: 'numero_carte', -> valueField == displayField, so use name instead name: 'numero_carte', selectOnFocus:true, displayField: 'numero', //valueField: 'numero', don't specify if valueField == displayField iconClsField: 'id_membre', // <- this is not a standard config option store: this.cartestore, anyMatch: true, // <- this is not a standard config option anchor:'100%', typeAhead: true, triggerAction: 'all', allowBlank: false }


Reply With Quote