jqgrid checkbox change event

前端 未结 3 1001
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 17:38

I have true/false values in my database. I want to update them with checkbox in jqgrid. Once the value is set to true, it will remain true and should not change. Please tak

3条回答
  •  时光说笑
    2020-12-11 17:43

    You can create a custom formatter. In your grid,

    formatter: cboxFormatter,
    

    Then define the function,

    function cboxFormatter(cellvalue, options, rowObject)
    {
      return '';
    }
    

    You can use onclick to perform your task or call a function.

提交回复
热议问题