Hello sainish,
You can change the width before printing and revert it to its previous value afterwards with the setcolumnproperty method, e.g.:
$("#print").click(function() {
$('#jqxgrid').jqxGrid('setcolumnproperty', 'firstname', 'width', 90);
var gridContent = $("#jqxgrid").jqxGrid('exportdata', 'html');
$('#jqxgrid').jqxGrid('setcolumnproperty', 'firstname', 'width', 120);
var newWindow = window.open('', '', 'width=800, height=500'),
document = newWindow.document.open(),
pageContent =
'<!DOCTYPE html>\n' +
'<html>\n' +
'<head>\n' +
'<meta charset="utf-8" />\n' +
'<title>jQWidgets Grid</title>\n' +
'</head>\n' +
'<body>\n' + gridContent + '\n</body>\n</html>';
document.write(pageContent);
document.close();
newWindow.print();
});
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/