sencha-fiddle

Chained combobox shows valuefield instead of displayfield when changing parent cb

≯℡__Kan透↙ 提交于 2019-12-12 05:41:56
问题 How to reset chained combobox in my example the extjs way? Consider this two comboboxes: { xtype: 'combo', bind:{ store: '{contacts}' }, reference: 'contactsCombo', displayField: 'name', name: 'contact', typeAhead: false, editable: false, fieldLabel: 'Contact', emptyText: 'Select a contact...', anchor: '95%', listeners: { change: 'onSelectChange' }, }, { xtype: 'combo', name: 'phone', reference: 'phonesCombo', fieldLabel: 'Phone', displayField: 'number', valueField:'id', hiddenName: 'id',