Hello people,

Am facing a problem while trying to make a default selection in a ComboBox while loading a page. I mean, I have to make one item as selected, by default, while loading the page. I cant use setValue() method as it can take only Strings and not variables. But based on the back-end value I need to make one of the items in the list as selected by default. How do I do that ? Please help.

Adn this is how my ComboBox looks like:
var fileNameStore = new Ext.data.SimpleStore({
fields: ['value']
});

var newGroupIdNameData = Ext.data.Record.create([
{name: 'value', mapping:'value'}
]);
var fileSelectCombo = new Ext.form.ComboBox({
id: 'fileNameSelect',
store: fileNameStore,
mode: 'local',
editable: false,
valueField: 'value',
displayField: 'value',
typeAhead: true,
triggerAction: 'all',
emptyText: '',
selectOnFocus: true,
width: 150
});
fileSelectCombo.addListener('select', handleFileChange);
Thanks in Advance !