【问题标题】:Ext js 4 boxselect shows multiselect data when editing the formExt js 4 boxselect在编辑表单时显示多选数据
【发布时间】: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 : ','
                            },

【问题讨论】:

    标签: extjs extjs4 extjs-mvc


    【解决方案1】:

    试试这个 Ext.getCmp('boxselect id').setValue([5,6,7,10])。 确保数组

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多