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'
},
4

1 回答 1

7

您的列表项应替换为:

div class="x-boundlist-item"
于 2013-08-14T13:37:18.327 回答