jqgrid上要显示图片和上传图片的列,格式如下:
{label:'图片',name:'icon',index:'icon',autowidth:true,formatter:alarmFormatter...注意:edittype要为custom 也就是自定义编辑格式.
editoptions:{custom_element: ImgUpload, custom_value:GetImgValue}}
在...jqgrid 的列表里显示图片用到的 js function 此处与图片的上传没关系.
function alarmFormatter(cellvalue, options, rowdata){...fileElementId: 'imgFile',
dataType : 'json',
success: function(data,status){
//显示图片..., e);
}
}, 100)
xml = null
}
}