Hello,
I changed many times over this link. I do not understand the syntax of this event onBeforeExport.
I do so:
$(“#Pdf”).on(“click”, function(){
$(“#jqGrid”).jqGrid(“exportToPdf”,{
title: ‘title’,
orientation: ‘Landscape’,
pageSize: ‘A4’,
customSettings: null,
download: ‘download’,
includeLabels : true,
includeGroupHeader : true,
includeFooter: true,
fileName : “name.pdf”,
onBeforeExport: function() {
var documentDefinition = {
pageSize: options.pageSize,
pageOrientation: ooptions.orientation,
styles: {
tableBody: {
fontSize: 10
},
description: {}
},
},
},
});
});
does not work