Good day Everyone, I have a problem in using ‘exportdata’ to print grid.
this is my columns: {
text : 'name',
datafield : '1',
width : 150,
cellclassname: cellclass,
cellsalign: 'center',
align: 'center'
}
style sheet: .grid-row-class {
color:#69aa46!important;
background-color: lightblue!important;
font-family:SimHei;
}
I use ‘cellclassname: cellclass’ to add some style on it. So it’s work well utill i wanna print it.
var gridContent = $(“#jqxgrid1”).jqxGrid(‘exportdata’, ‘html’);
Export it and show it in a new window. Then the new html doesn’t contains style of ‘font-family'(color,background-color is ok)