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

相关文章:

  • 2021-10-30
  • 2021-08-24
  • 2022-12-23
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
  • 2021-12-26
  • 2021-04-01
猜你喜欢
  • 2021-11-29
  • 2022-01-04
  • 2021-09-13
  • 2022-01-12
  • 2021-08-13
  • 2021-08-31
  • 2022-12-23
相关资源
相似解决方案