ExtJS 4 has a built-in findRecord() method that does the search suggested by BigSean above, so you don't need to write all this code:
Ext.override(Ext.form.field.ComboBox, { getDisplayedValue: function() { // getDisplayValue() already exists but is a private method var me = this, value = me.value, record = null; if(value) { record = me.getStore().findRecord(me.valueField, value); } if(record) { return record.get(me.displayField); } return null; } });
source share