让Ext.ux.grid.RowEditor动态停止工作的好方法

有时我们需要根据某些条件让editor停止工作,利用beforeedit事件可以实现此功能:
var editor = new Ext.ux.grid.RowEditor({
        saveText: 'Update',
        listeners: {
            beforeedit: function () {
               /// 我们可以在这里插入条件判断语句,若返回false则editor不可进入编辑状态
                return false;
            }
        }
    });
原文地址:https://www.cnblogs.com/minideas/p/1961496.html