2

I am using an Ext.form.Combobox on a column model editor, and this ColumnModel is put in to an EditorGridPanel. After I select an item in combobox, the text displayed on combobox is always the valueField, not displayField. How can I keep the displayField on combobox in EditorGridPanel after selecting any item? Thank you so much.

Đinh Hồng Châu
  • 5,300
  • 15
  • 53
  • 90

1 Answers1

2

You need to use the renderer method for the column to display the desired text.

renderer: function(val){
    // select the display text for val from the combobox's store
    return display text;
}
Abdel Raoof Olakara
  • 19,223
  • 11
  • 88
  • 133