PDA

View Full Version : Combo select problem



chris86
1 Sep 2014, 11:57 PM
Hello,

I have a problem with a combobox. If I select a value of a combobox, the combo dont show the selected value. The box display every time the first entry of the list.

Code:


...},{

xtype:'combo',
fieldLabel: 'Chef',
name: 'ChefCombo',
hidden: true,
id: 'ChefID',
hiddenName: 'CchefComboHidden',
hiddenId: 'ChefIDHidden',
store: tcstore,
valueField: 'User',
displayField: 'tcName',
triggerAction: 'all',
hideTrigger: false,
mode: 'remote',
emptyText: 'Please select...',
forceSelection: true,
editable: false,
loadingText: 'Load...',
allowBlank: false,
listeners: {
select: function(cb, rec, idx)
{
var selRec = Ext.getCmp('ChefID').getValue();
Ext.getCmp('Button007').setDisabled(false);
}
}
}

....


Thanks
Chris

chris86
2 Sep 2014, 3:07 AM
I solved the problem.

In the store the value for the "valueField" wasn't load.