jqGrid show an 'edit' icon for in line editing

后端 未结 2 2004
醉酒成梦
醉酒成梦 2021-01-26 04:55

I am using the jqGrid with inline editing option. I want to show an edit icon if the cell does not have any values.

So I write a formatter:

 function aFo         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-26 05:52

    This will show an "edit" icon instead of "you can edit this" in the grid

    function aFormatter(cellvalue, options, row) {
       if(cellvalue == null) {          
          return ''
       } else {
          return cellvalue;
       }
    }
    

提交回复
热议问题