首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

Extjs Combobox中展示两个字段内容

2012-08-15 
Extjs Combobox中显示两个字段内容?字段1? 字段2? 字段3cnbj?? 中国?? 北京cnsh?? 中国?? 上海mgny?? 美国

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

?

?

热点排行