【问题标题】:Validate Edited data in JQGrid在 JQGrid 中验证已编辑的数据
【发布时间】:2013-04-06 15:53:17
【问题描述】:

我有一个可编辑的 JQGrid(使用事件进行内联编辑)。我想验证编辑过的数据。我尝试了以下但没有一个工作。它将数据提交到服务器并返回错误。

方法一: 编辑规则:{数字:真}

方法2 { name: 'Projection', index: 'Projection', width: 45, editable: true, edittype: 'text', editRules: { custom: true, custom_func: ValidateCell} },

我也尝试设置 edittype = custom,但我不明白为什么需要它。我只需要阻止用户输入除数字以外的任何内容

谢谢, 阿夏

【问题讨论】:

    标签: jqgrid validation


    【解决方案1】:

    这太尴尬了!!

    我把editrules写成editRules!!!

    现在一切正常!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-22
      • 1970-01-01
      • 2017-05-30
      • 1970-01-01
      相关资源
      最近更新 更多