Is Kendo UI Angular support with Export CSV functionality ?

1 Answer 875 Views
Excel Export PDF Export
Ranjith
Top achievements
Rank 1
Iron
Ranjith asked on 04 May 2021, 06:34 AM
I can able to see the support with Excel and PDF. Please answer. Thanks

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 05 May 2021, 11:09 AM

Hi,

Exporting data to CSV is not supported, but can be achieved via custom logic involving looping through the Grid data, and creating the CSV entries. Afterwards the FileSaver package and its saveAs() function can be used to save the newly created file. Here is an example of the described approach in action:

https://stackblitz.com/edit/angular-fqkdtt?file=app%2Fapp.component.ts

It is important to note that the purpose of the example is to points the developer in a direction on how the Grid can be exported in formats that are currently not supported. It might need further modification in order to fit the requirements. 

I hope this helps.

Regards,
Dimiter Madjarov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Aman
Top achievements
Rank 1
commented on 09 Mar 2023, 01:49 PM

Can we add grid headers into this solution ?
Dimiter Topalov
Telerik team
commented on 10 Mar 2023, 08:32 AM

We are tracking the following feature request for built-in Grid CSV export:

https://feedback.telerik.com/kendo-angular-ui/search?listMode=Search&searchTerm=csv&pageIndex=1

You can track, support and comment it as necessary. Meanwhile, any alternative solutions would require custom implementation and logic, similar to the one, demonstrated in the linked demos. Any enhancements or further customizations are in the hands of the developer

Tags
Excel Export PDF Export
Asked by
Ranjith
Top achievements
Rank 1
Iron
Answers by
Dimiter Madjarov
Telerik team
Share this question
or