I am exporting a jquery grid to PDF with saveAsPD(); I am setting pdf on grid initializing to
pdf : {
multiPage: true,
allPages: false,
landscape: true,
repeatHeaders: true,
scale: 0.5,
creator: "John Snow",
margin: { top: "1cm", right: "1cm", bottom: "1cm", left: "1cm" },
}
If I am trying to change pdf options, creator for example, the created pdf has just headers and no data.
kendoGrid.setOptions({pdf: {creator: 'Sansa Stark'}});
kendoGrid.saveAsPDF();
The request to the new data is executed but data are not rendered, no a single row :(.
Can anybody help?
P/S Just in case pdf export handler:
pdfExport: (e) => {
const grid = kendo
.jQuery(this.gridConfigurationTemplate.nativeElement)
.data('kendoGrid');
const removableColumns = [];
grid.columns.forEach((col, index) => {
if (!col.ColumnId) {
removableColumns.push(index);
}
});
if (removableColumns.length) {
removableColumns.forEach((i) => {
grid.hideColumn(i);
});
e.promise.done(() => {
removableColumns.forEach((i) => {
grid.showColumn(i);
});
});
}
},