【问题标题】:How to cancel jqGrid cell edit operation如何取消jqGrid单元格编辑操作
【发布时间】:2014-08-01 22:08:45
【问题描述】:

我需要能够根据特定条件取消单元格编辑操作。我正在使用beforeSaveCell 事件来实现这一点。我可以更改单元格的值,但不能拒绝新输入的值并保留旧值。请帮帮我...

beforeSaveCell: function (rowid, celname, value, iRow, iCol) {
     if(some_condition)
         return value;
     else
         //cancel the edit operation, how?
}

谢谢

【问题讨论】:

    标签: jquery jqgrid


    【解决方案1】:

    您似乎对保存的值进行了某种验证。也许您应该在editrules 中使用custom_funccustom: true 属性?

    【讨论】:

      猜你喜欢
      • 2010-12-19
      • 2017-12-23
      • 1970-01-01
      • 2011-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多