1,单元格样式
cellStyle : function cellStyle(value, row, index) {
return {
css : {
"white-space" : "nowrap"
}
};
},
2、 行样式:
rowStyle:function rowStyle(row, index) {
return {
css: {"white-space": "nowrap"}
};
},
3,下载列
{
title: '操作',
field: 'downloadFile',
align: 'center',
valign: 'middle',
formatter: function(value,row,index){
var name=encodeURI(encodeURI(row.downloadFile));
var projectNo=encodeURI(encodeURI(row.projectNo));
var fileName=encodeURI(encodeURI(row.fileName));
var e = "<a href='"+path+"TestReportAction.do?method=downloadFile&filename="+name+"&projectNo="+projectNo+"&fileName="+fileName+"' class='btn btn-primary' >下载</a> ";
return e;
}