开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜