【发布时间】:2013-02-15 07:17:46
【问题描述】:
在 EXTJS 4 中编辑表单时,是否有任何方法可以在 Boxselect xtype 上加载多选数据 我正在使用
Ext.getCmp('boxselect id').setValue(5,6,7,10).
当我将单个值设置为设置值时,上面的代码正在工作,但我的条件是在编辑表单时加载多个选定的数据,因为 boxselect 是多选类型。
{
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 : ','
},
【问题讨论】: