Forum /
Ext JS 2.x - Unsupported /
Ext 2.x: Help & Discussion /
How to set a default value for a comboBox ?
How to set a default value for a comboBox ?
When I'm loading a page with a comboBox, how do I mark an entry in the combo as selected ? I want the combo to remember the option selected previously by the user
thanks
Sencha - Community Support Team
set the 'value' property to set the value. The OOTB template engine doesn't show if an item is selected or not.
It partially works, but I'm still missing something. I included this line:
Code:
combo.setValue('ME');
but is displaying 'ME' in the label, not 'Maine'.
Any idea ?
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us