{name:"isrequire", index:"isrequire", hidden:true},
{name:"isrequirename",index:"isrequirename",refindex:"isrequire",align:"center",width:80,formatter:function(cellValue, options, rowObject){
var grid_selector=options.gid;
var index=options.colModel.refindex;
return '<input type="checkbox" id="'+options.rowId+'_'+index+' " name="'+index+'" '+ (rowObject[index]==1 ? "checked" : "") +' role="checkbox" οnclick="bkccustom.checkboxOnclick(this,\''+grid_selector+'\',\''+options.rowId+'\',\''+index+'\');" class="editable">';
}}
//第一行为值,第二行为显示用,refinddex相对应值的index
jqgrid行编辑复选框
猜你喜欢
转载自blog.csdn.net/qq_33871182/article/details/103288945
今日推荐
周排行