小弟第一次提问,这个问题弄了我一天了,不知道怎么办,就是怎么在 model: remote 能 自动过滤和自选择呢 ,帮帮我啊,我都快急哭了... fieldLabel: '职工姓名<span style="color: red;" >*</span>',
xtype: 'combo',
displayField: 'XM',
valueField: 'ZGH',
mode:'remote',
maxHeight: 300,
allowblank: true,
pageSize: 10,
minChars: 1,
typeAhead: true, blankText: '请填写正确的员工姓名...', store: personnelStore,
tpl: new Ext.XTemplate(
'<div class="x-grid3"><div><table>',
'<thead class="x-grid3-header"><tr class="x-grid3-hd-row">',
'<td class="x-grid3-hd x-grid3-cell x-grid3-hd-inner" style="width: 50px;color: blue;">职工号</td>',
'<td class="x-grid3-hd x-grid3-cell" style="width: 200px;color: blue;">职工姓名</td>',
'</tr></thead><tbody>',
'<tpl for=".">',
'<tr class="x-combo-list-item">',
'<td class="x-grid3-col x-grid3-cell"><div class="x-grid3-cell-inner" style="font-size:12px;">{ZGH}</div></td>',
'<td class="x-grid3-col x-grid3-cell"><div class="x-grid3-cell-inner" style="font-size:12px;">{XM}</div></td>',
'</tr>', '</tpl>', '</tbody></table></div></div>')
xtype: 'combo',
displayField: 'XM',
valueField: 'ZGH',
mode:'remote',
maxHeight: 300,
allowblank: true,
pageSize: 10,
minChars: 1,
typeAhead: true, blankText: '请填写正确的员工姓名...', store: personnelStore,
tpl: new Ext.XTemplate(
'<div class="x-grid3"><div><table>',
'<thead class="x-grid3-header"><tr class="x-grid3-hd-row">',
'<td class="x-grid3-hd x-grid3-cell x-grid3-hd-inner" style="width: 50px;color: blue;">职工号</td>',
'<td class="x-grid3-hd x-grid3-cell" style="width: 200px;color: blue;">职工姓名</td>',
'</tr></thead><tbody>',
'<tpl for=".">',
'<tr class="x-combo-list-item">',
'<td class="x-grid3-col x-grid3-cell"><div class="x-grid3-cell-inner" style="font-size:12px;">{ZGH}</div></td>',
'<td class="x-grid3-col x-grid3-cell"><div class="x-grid3-cell-inner" style="font-size:12px;">{XM}</div></td>',
'</tr>', '</tpl>', '</tbody></table></div></div>')
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货