aCa
7 Dec 2010, 4:14 AM
Hi.
I have problems selecting an value from a select field.
this.paymentSelect = new Ext.form.Select({
name: 'payment',
hiddenName: 'hdPayment',
label: 'Payment',
valueField: 'id',
displayField: 'description',
value: defaultValue
});
this.paymentSelect.store = store;
I had to set the store after the initial creation or else it did not work but that is not a major issue.
The problem I have is that the value only sets the default value when I click the select box and not the actual initial display value in the "text field". Is there any way to get it default the display text in the field like it does with the DatePicker?
I have problems selecting an value from a select field.
this.paymentSelect = new Ext.form.Select({
name: 'payment',
hiddenName: 'hdPayment',
label: 'Payment',
valueField: 'id',
displayField: 'description',
value: defaultValue
});
this.paymentSelect.store = store;
I had to set the store after the initial creation or else it did not work but that is not a major issue.
The problem I have is that the value only sets the default value when I click the select box and not the actual initial display value in the "text field". Is there any way to get it default the display text in the field like it does with the DatePicker?