【问题标题】:Extjs Access record from component column editor来自组件列编辑器的 Extjs 访问记录
【发布时间】:2015-07-27 23:01:28
【问题描述】:

我正在尝试在网格列中创建一个组合框。每行将有一个组合框,该组合框的存储将使用当前行记录来确定组合框中应启用/禁用的内容。

如何访问我的componentcolumneditor 属性中的当前行记录?

{
    text: '',
    xtype: 'componentcolumn',
    editor: {
        xtype: 'combobox',
        store: Ext4.create('app.store.ActionStore', {record: ..?}),
        queryMode: 'local',
        forceSelection: true
    }
}

我的专栏有与上述类似的内容。我需要了解如何将有效的record 传递给上面创建的商店。

我正在使用 Ext 4.2。

【问题讨论】:

    标签: extjs combobox store


    【解决方案1】:

    您可以通过实现网格编辑插件(行或单元格)的beforeeditvalidateedit 事件来做到这一点。

    http://docs.sencha.com/extjs/4.0.7/#!/api/Ext.grid.plugin.CellEditing-event-beforeedit

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多