PDA

View Full Version : ComboBox + Store ... on name doublettes, value changes ignored



demianovics
13 Mar 2011, 8:43 PM
i have

var combobox = {
xtype: 'combo'
, store: store
, displayField: 'name'
, valueField: 'id'
, typeAhead: true
, mode: 'local'
, forceSelection: false //true
, triggerAction: 'all'
, selectOnFocus: true
};
and

var store = this.store = new Ext.data.JsonStore({
root: 'data.data'
, totalProperty: 'data.totalCount'
, idProperty: 'id'
, fields: ['id','name']
, proxy: proxy
, autoLoad: true
, remoteSort: true
});

but when i have two records in my results, which have the same "name" (but different "id") - it always drops back to the first in the list, allthough i surely clicked on the latter one. just as soon as the field looses focus.

any idea? thanks in advance