【问题标题】:RowBinding event in jqgridjqgrid中的RowBinding事件
【发布时间】:2014-11-02 13:06:39
【问题描述】:

jqgrid 中是否有类似“RowBinding”的事件。在某些情况下,我需要在客户端每行数据的一列中添加image标签。

类似的,

 RowBinding: function (rowId, rowData) {
           //After manipulating the data it should get bind to the grid.
                }

如果有其他选择,请指导我。

【问题讨论】:

    标签: jqgrid mvcjqgrid


    【解决方案1】:

    我建议您在需要放置图像的列中使用自定义格式化程序。通过自定义格式化程序的第三个参数 (rowObject),您可以访问该行的 所有 值。如果您需要对图像上的click 执行一些额外操作,您可以另外使用beforeSelectRow 回调。我建议您阅读the answerthis one

    【讨论】:

      猜你喜欢
      • 2011-07-08
      • 2014-11-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-30
      • 2013-09-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多