Plugins ExtJS 4.0.7:树网格-多个插件

Plugins ExtJS 4.0.7:树网格-多个插件,plugins,extjs,extjs4,treegrid,Plugins,Extjs,Extjs4,Treegrid,在过去的一周里,我一直试图找到解决这个问题的办法,但运气不佳。这是我最后的选择 我在ExtJS4.0.7中有一个树网格。(我可以选择更新到4.1.0,但它会产生一些我没有时间查看的错误)。我希望能够拖放以及编辑树网格中的指定单元格。但到目前为止,我还无法在一个网格中添加两个或更多插件 viewConfig: { id: 'raGridTreeView', plugins: [ Ext.create('Ext.tree.plugin.TreeViewDragDrop

在过去的一周里,我一直试图找到解决这个问题的办法,但运气不佳。这是我最后的选择

我在ExtJS4.0.7中有一个树网格。(我可以选择更新到4.1.0,但它会产生一些我没有时间查看的错误)。我希望能够拖放以及编辑树网格中的指定单元格。但到目前为止,我还无法在一个网格中添加两个或更多插件

viewConfig: {
    id: 'raGridTreeView',
    plugins: [
        Ext.create('Ext.tree.plugin.TreeViewDragDrop', { ptype: 'treeviewdragdrop', appendOnly: true })
        // Second plugin here: Ext.grid.plugin.CellEditing (This does not exist in tree plugins)
    ]
},
有人知道怎么解决这个问题吗?可能是一种解决方法/覆盖

更新:我之前一直在尝试,并添加了以下代码:

Ext.override(Ext.data.AbstractStore,{ 
   indexOf: Ext.emptyFn 
}); 

在项目开始时。我不知道它是否有效,但我想不会,因为它对结果没有影响。

没关系,我想:这一切都与我称之为插件的方式有关:

而不是使用

plugins: [
    Ext.create('Ext.tree.plugin.TreeViewDragDrop', { ptype: 'treeviewdragdrop', appendOnly: true })
    // Second plugin here: Ext.grid.plugin.CellEditing (This does not exist in tree plugins)
]
我应该使用:

plugins: [{ 
    Ext.create('Ext.tree.plugin.TreeViewDragDrop', { ptype: 'treeviewdragdrop', appendOnly: true })
},{
    // Second plugin here
}]

只是想补充一点,我之前一直在尝试,我已经添加了代码:Ext.override(Ext.data.AbstractStore,{indexOf:Ext.emptyFn});在项目开始时。我不知道它是否有效,但我想不会,因为它对结果没有影响。