ExtJS组合框与TPL问题

3
我已经按照之前的示例创建了一个具有“多列”选项的组合框,但是当我尝试选择一项时,它并没有进行选择。如何使用tpl启用选项的选择?
{
    xtype: 'combobox',
    tpl: '<tpl for="."><div class="x-combo-list-item" >{ntID} {PictureURL}</div></tpl>',
    editable: true,
    //autoSelect: true,
    triggerAction: 'all',
    store: 'userInfos',
    displayField: 'ntID',
    valueField: 'ntID',
    fieldLabel: 'Username',
    itemId: 'username'
},
1个回答

7

您的列表项目应替换为:

div class="x-boundlist-item"

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接