PDA

View Full Version : Is there any config to show first value of combo's store as default in view?



a.premkumar
8 Oct 2013, 3:52 AM
Hello,

I am working with combbox for a while now. Initially when a combo is rendered, it shows nothing. Data associated with the combo can be seen only when the drop down is expanded. But I need to show the first value of the combo's store as default when the component is rendered. Now I am manually setting the value by setValue(). It becomes complicated when more combo is used in a page. I am using ExtJS 4.1.3. Is there any config that I missed or fix in recent releases?

Regards,
Premkumar.

ettavolt
10 Oct 2013, 12:10 AM
You can specify 'value' for combo. And if you choose it same as value of valueField of first record, combo will display it.