How can I set the default value from ComboBox.
I try:
a) call ComboBox: : select(5)
b) call ComboBox: : setValue("MyItemLabel");
c) call ComboBox: : setValue(new CDCBaseModel("MyItemLabel")); where CDCBaseModel extends BaseModel and overrides hashCode() and equals()
but these variants doesn't give any effects.
(I work with Firefox browser)
Last edited by mmiotk; 24 Apr 2008 at 6:59 AM.
Reason: smiles
plitvak - The combo drop down list only works with a store. You cannot add values directly to the combo. You can then use getValue or getSelectedRecord to get the selection.
Yes, I know that what I was wondering is that if you are planning on changing this to allow some sort of add(Item) method so that this control could be use with different than Store types of data sources.