We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

PDF export fails when both footerTemplate and groupFooterTemplate are defined

Check out this sandbox example:
https://codesandbox.io/embed/syncfusion-grid-group-pdf-export-isjxg?fontsize=14&hidenavigation=1&theme=dark

Try clicking on the "Export to PDF" button to export the rendered grid, and you'll get this error:

Uncaught (in promise) TypeError: w[t.getEnumValue(...)] is not a function
    at i.processAggregates (ej2-grids.umd.min.js:10)
    at eval (ej2-grids.umd.min.js:10)
    at e.notify (ej2-base.umd.min.js:10)
    at o.e.trigger (ej2-base.umd.min.js:10)
    at VueComponent.n.trigger (ej2-vue-grids.umd.min.js:10)
    at y (ej2-grids.umd.min.js:10)
    at i.processGroupedRecords (ej2-grids.umd.min.js:10)
    at i.processGridExport (ej2-grids.umd.min.js:10)
    at eval (ej2-grids.umd.min.js:10)
    at new Promise (<anonymous>)
    at i.processExport (ej2-grids.umd.min.js:10)
    at eval (ej2-grids.umd.min.js:10)

In the Grid.vue component file, you'll see aggregate column defined as follows:
columns: [
{
field: "purchase",
type: "Sum",
// PDF export fails when both footer templates defined.
// If either one of them is removed, and the other defined,
// then it works fine.
footerTemplate: this.footerSum,
groupFooterTemplate: this.footerSum
}
]


As the comment says, try commenting out either template, and then export works.

What's happening here?

Thanks!

5 Replies

PK Prasanna Kumar Viswanathan Syncfusion Team January 3, 2020 12:06 PM UTC

Hi Bill , 
 
Greetings from Syncfusion support 
 
Query : PDF export fails with both footertemplate and groupfooterTemplate are defined 
 
We are able to reproduce the reported issue at our end and we have confirmed it is bug. Thank you for taking the time to report this issue PDF export fails with both footertemplate and groupfooterTemplate are defined” and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming bi-weekly release 22nd January, 2020. 
 
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.  
 
 
Till then we appreciate your patience. 
 
Regards, 
Prasanna Kumar N.S.V 



BN Bill Naples January 7, 2020 10:36 AM UTC

Thanks so much Prasanna. Much appreciated.


DR Dhivya Rajendran Syncfusion Team January 8, 2020 06:18 AM UTC

Hi Bill, 
 
Thanks for your update. 
 
You can track the status through our feedback link that we have provided in the last update and get back to us if you need further assistance from us. 
 
Regards, 
R.Dhivya  



JS João Soares replied to Prasanna Kumar Viswanathan March 8, 2021 04:47 PM UTC

Hi Bill , 
 
Greetings from Syncfusion support 
 
Query : PDF export fails with both footertemplate and groupfooterTemplate are defined 
 
We are able to reproduce the reported issue at our end and we have confirmed it is bug. Thank you for taking the time to report this issue PDF export fails with both footertemplate and groupfooterTemplate are defined” and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming bi-weekly release 22nd January, 2020. 
 
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.  
 
 
Till then we appreciate your patience. 
 
Regards, 
Prasanna Kumar N.S.V 


Has this problem been solved?


BS Balaji Sekar Syncfusion Team March 9, 2021 06:13 AM UTC

Hi Bill, 
 
Sorry for inconvenience caused, 
 
We have rolled out this bug fix in our EJ2 Grid Weekly patch release (v17.4.44) successfully and in this release, we have included the fix for PDF export fails when both footerTemplate and groupFooterTemplate are defined issue. So kindly update to our latest version (18.4.47) to resolve the reported issue.  
 
 
 
 
Please get back to us, if you need further assistance. 
 
Regards, 
Balaji Sekar 


Loader.
Live Chat Icon For mobile
Up arrow icon