Jul 04, 2013, 3:50 PM
[CLOSED] Getting ComboBox ValueField with ExtJS
I would like to know if it is possible to get the ValueField of the selected Value for a ComboBox.
Example :
I have a ComboBox named DFE.
I add the ValueField and DisplayedValue to its store by using the following code :
field2 - DisplayValue
But how can I get the valueField for the SELECTED value of the ComboBox?
Thank you.
Example :
I have a ComboBox named DFE.
I add the ValueField and DisplayedValue to its store by using the following code :
var store = Ext.getCmp('DFE').getStore();
store.add({ field1: input.id, field2: input.value });
I can access the value of the valuefield or the displayfield using the following commands :Ext.getCmp('DFE').store.data.items[i].data.field1
Ext.getCmp('DFE').store.data.items[i].data.field2
field1 - ValueFieldfield2 - DisplayValue
But how can I get the valueField for the SELECTED value of the ComboBox?
Thank you.
Last edited by Daniil; Jul 10, 2013 at 4:24 AM.
Reason: [CLOSED]