PDA

View Full Version : default value of combobox



gurunath
3 Jul 2012, 10:54 PM
Sorry if I asking same question

I want to set default value for combo box which loads data from server
that data is dynamic and i want to set default value = first record

One way is in after render of combo get first record of blinded store but it is long way i want something short way please help me

scottmartin
4 Jul 2012, 8:14 AM
You will have to set the value, afterrender is fine.



record = store.getAt(0); // first
combo.setValue(record.data.field);


Scott