Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Combobox 带有TPL问题的ExtJS组合框_Combobox_Extjs4.2 - Fatal编程技术网

Combobox 带有TPL问题的ExtJS组合框

Combobox 带有TPL问题的ExtJS组合框,combobox,extjs4.2,Combobox,Extjs4.2,我按照前面的示例创建了一个包含“多个”列的组合框,但是,当我选择一个项目时,它不会进行选择。如何使用tpl启用项目选择 { xtype: 'combobox', tpl: '<tpl for="."><div class="x-combo-list-item" >{ntID} {PictureURL}</div></tpl>', editable: true, //autoSelect: true, trig

我按照前面的示例创建了一个包含“多个”列的组合框,但是,当我选择一个项目时,它不会进行选择。如何使用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'
},
{
xtype:“组合框”,
tpl:“{ntID}{PictureURL}”,
是的,
//自动选择:正确,
触发动作:“全部”,
存储区:'userInfos',
显示字段:“ntID”,
valueField:'ntID',
fieldLabel:'用户名',
itemId:'用户名'
},

您的列表项应替换为:

div class="x-boundlist-item"