读书人

Extjs Combobox中展示两个字段内容

发布时间: 2012-08-15 16:57:17 作者: rapoo

Extjs Combobox中显示两个字段内容

?

字段1? 字段2? 字段3
cnbj?? 中国?? 北京
cnsh?? 中国?? 上海
mgny?? 美国?? 纽约

在 combobox中如果想显示字段2+字段3的内容?

使用convet

先定义个函数

?

xtype: 'combo',fieldLabel: '区域',store: comboxStore,mode: 'remote',displayField: 'selecttext',//这里triggerAction: 'all',name: 'area',emptyText: '请选择区域…',editable: false,anchor: '95%'

?至此就可以在combobox中显示两个字段内容

?

原文出处:http://www.cnblogs.com/jadebug/archive/2011/06/27/2091348.html

?

?

读书人网 >JavaScript

热点推荐