如何从可编辑记录中隐藏roweditor cls

问题描述

如何隐藏roweditor cls。

我在extJS网格中使用行ediotr。当我单击编辑器时,它以高亮的mannner形式显示

这是图像。我想删除在点击网格编辑器时发生的网格忽略。

enter image description here

这是我的代码,用于删除更新和取消按钮。

listeners:{
        'beforeedit':function(editor){
            editor.getEditor().floatingButtons.hide();
        } 
    },

任何帮助如何删除extJS网格中我的编辑器的高亮单元格

解决方法

只需在重新布局事件中隐藏RowEditingButtons:

listeners: {
    'beforeedit': {
        fn: function (editor) {
            editor.getEditor().on('afterlayout',function (editorComponent) {
                editorComponent.getFloatingButtons().hide();
            });
        },single: true
    }
}

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...