The grid we have has fewer columns on the view mode and a lot more columns on the edit/insert mode
We need to be able to export every record on demand with all the columns
Is there a way we can save the popup edit form to pdf ?
3 Answers, 1 is accepted
0
Vladimir Iliev
Telerik team
answered on 07 Dec 2015, 09:07 AM
Hi Manav,
You can use the "pdfExport" event of the grid to show the desired columns and hide them when the export is completed using the provided promise. Please check the example below:
pdfExport: function(e) {
this.hideColumn(1);
var grid = this;
e.promise.then(function(e) {
grid.showColumn(1);
});
},
Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Many thanks for the solution. I was ideally looking at getting the popup form printed as it allows us to show the fields as a form (like on the popup form) as opposed to 1 row of all the fields. Please advise if this is doable.
0
Vladimir Iliev
Telerik team
answered on 09 Dec 2015, 09:19 AM
Hi Manav,
You can achieve the desired behavior using custom code - as starting point you can check the following demo which shows how to utilize the "pdfExport" event to customize the page before exporting: