Extjs Ext js 4 boxselect在编辑表单时显示multiselect数据
在EXTJS 4中编辑表单时,是否有任何方法可以在Boxselect xtype上加载多选数据 我正在使用Extjs Ext js 4 boxselect在编辑表单时显示multiselect数据,extjs,extjs4,extjs-mvc,Extjs,Extjs4,Extjs Mvc,在EXTJS 4中编辑表单时,是否有任何方法可以在Boxselect xtype上加载多选数据 我正在使用 Ext.getCmp('boxselect id').setValue(5,6,7,10). 当我将单个值指定给set value时,上面的代码起作用,但我的条件是在编辑表单时加载多个选定数据,因为boxselect是multiselect类型 { xtype : 'boxselect',
Ext.getCmp('boxselect id').setValue(5,6,7,10).
当我将单个值指定给set value时,上面的代码起作用,但我的条件是在编辑表单时加载多个选定数据,因为boxselect是multiselect类型
{
xtype : 'boxselect',
store : 'store',
name: 'attributes',
id: 'attributes',
displayField: 'name',
valueField: 'abbr',
multiSelect : true,
fieldLabel: 'Attribute',
allowBlank: false,
editable: true,
allowQueryAll : false,
forceSelection : true,
typeAhead: true,
triggerAction: 'all',
delimiter : ','
},
试试这个Ext.getCmp('boxselect id').setValue([5,6,7,10])。
确定数组