In combo editor, after select a option, it display value even I set display Field.
Once I click the combo editor, it will display displayField as well, but after select and click the others (It means mouse out) then the cell value changed to valueField.
my combo editor code,
{
xtype : 'combo',
editable : false,
triggerAction : 'all',
displayField : 'name',
valueField : 'id',
store : myStore
}
what I missed?
anyone know, please advice me~
Thanks!
[Edit]
I write test code in here :
http://jsfiddle.net/ilovekanon/NQXw9/
change name and click the others then the name will show ID, not name 🙁
Your jsFiddle code dose not wrong.
displayFieldin combo is mean that displayed data field name in combo.It’s not displayed value in grid.
grid display selected value, when selected option in combo.
if you want to display
namein combo’s store,valueFieldmust is set ‘name’,So, If you need to id in combo’s store, You maybe set new hidden grid column. when change event trigger.