[英]Extjs multi column combobox
如何在Extjs组合框数据中创建多列组合框
--
第1列-第2列-第3列== N没有数据
我有3个字段,名字,中间名和姓氏想要在组合框中显示所有直接从JSON或Combobox归档的字段,以上述格式存储负载数据
使用组合框的listConfig选项
xtype:'combobox',
height: 43,
width: 449,
store: 'searchedStore',
listConfig: {
loadingText: 'Loading...',
emptyText: 'No Results.',
// Custom rendering template for each item
getInnerTpl: function() {
return '<table width="100%">'+
'<tr>'+
'<td style="vertical-align:top;width:100%">'+
'<div><span style="font-weight:bold;">{name} {middlename} </span><span style="float:right;color:blue">{lastname}</span></div>'+
'</td>'+
'</tr>'+
'</table>';
}
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.