PDA

View Full Version : Combobox shows wrong value



Urkman
24 Feb 2010, 1:47 AM
Hello,

I have this ComboBox inside a Form.


new Ext.form.ComboBox({
id: 'hiddenField',
fieldLabel: 'Hidden',
hiddenName: 'hidden',
store: new Ext.data.ArrayStore({
fields:[ 'value', 'text' ],
data:[ [ 'true', 'Yes' ], [ 'false', 'No' ] ]
}),
valueField: 'value',
displayField: 'text',
width: 200,
mode: 'local',
triggerAction: 'all',
editable: false,
forceSelection: true
})
After the Form is loaded, the ComboBox show "false" and not "No"...

Where is my problem here?

Thanks for your Help,
Urkman

Vepe
24 Feb 2010, 2:35 AM
hum... here it worked normally (but I just replaced it in a combobox of my code)... can u show me the rest of the code