Is there a way to dynamically change the cell value of a jqGrid?

前端 未结 2 777
你的背包
你的背包 2021-01-28 18:58

This question may have been asked many times, but I would like to know if it possible to dynamically change the cell value of a jqgrid?

I basically have a grid that is t

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-28 19:31

    I don't think that changing the value is what you really need in this situation. You should rather create your own custom formatter. It might look more less like this:

    var nullFormatter = function(cellvalue, options, rowObject) {
        if (cellValue == null)
            return "Not Applicable";
        else
            return cellValue;
    };
    

    This is just very basic, sample implementation but it should give you an idea.

提交回复
热议问题