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']
});