PDA

View Full Version : The Fu... combobox and it selected value



marcomarco
27 Aug 2011, 3:16 PM
Hi everybody..

I had waste all my day trying get the selected value of a Ext.form.field.ComboBox :S

the dam.. method getValue() return null and in not one forum saw some information

there is de fuc.. solution


listeners: {
select: function(combo, value, options) {
var index = combo.store.find('DATASTORE_FIELD', combo.getRawValue());
var sel = combo.store.getAt(index);
alert("VALUE: " + sel['internalId']);

}
}

THXZ

mitchellsimoens
28 Aug 2011, 5:17 AM
Please be mindful of language
Which framework version are you using so I can movet his thread to the proper forum?