开发者

Keep displayField on Ext.form.Combobox in EditorGridPanel after selecting item?

开发者 https://www.devze.com 2023-02-23 15:14 出处:网络
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 alwaysthe valueFie

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.


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;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消