1

我不想在编辑一行时移动编辑器,出于我的目的,我已将 clicksToMoveEditor 属性设置为 10,但它仍然可以移动编辑器。

如何在 ExtJS 4.2 中实现这个目标?

4

1 回答 1

0

我将覆盖 startEdit 函数,以便它仅在编辑器当前未编辑时才有效。

Ext.define('CustomRowEditor',{
    extend: 'Ext.grid.plugin.RowEditing',
    startEdit: function(){
        if(!this.editing){
            this.callParent(arguments);
        }
    }
});
于 2013-11-12T15:36:24.953 回答