This is a migrated thread and some comments may be shown as answers.

PDF Export for popup edit form

3 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Man
Top achievements
Rank 1
Man asked on 03 Dec 2015, 08:48 AM

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

Sort by
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!
 
0
Man
Top achievements
Rank 1
answered on 07 Dec 2015, 10:24 AM

Hi Vladimir,

       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:

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Man
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Man
Top achievements
Rank 1
Share this question
or