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

Export to CSV support on Kendo React Grid

1 Answer 1093 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ajit
Top achievements
Rank 1
Ajit asked on 23 Apr 2020, 07:07 AM

Hi,

 

Does Kendo React grid support export to CSV file format? Does Kendo Grid gives out of the box feature like Export to Excel or do i need to do some custom development regarding the ?

Please let me know

Thanks in Advance

1 Answer, 1 is accepted

Sort by
-2
Accepted
Stefan
Telerik team
answered on 23 Apr 2020, 02:31 PM

Hello, Ajit,

The KendoReact provide the functionality to export the KendoReact Grid data to excel:

https://www.telerik.com/kendo-react-ui/components/grid/excel-export/

I can suggest checking the react-csv library (or any alternative) to download the Grid data to CSV:

https://www.npmjs.com/package/react-csv

I made an example demonstrating this:

https://stackblitz.com/edit/react-bgrlp2?file=app/main.js

I hope this is helpful.

Regards,
Stefan
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
RainMaker
Top achievements
Rank 1
commented on 14 Sep 2023, 04:18 PM

This will only export the current page as csv. How could we use this example to export all the data for the grid?
Wissam
Telerik team
commented on 18 Sep 2023, 01:24 PM

Hello, RainMaker,

I tested the latest version of the Grid with paging but all the data was being exported on my side:

The `react-csv` library exports all the data provided to the data prop of `CSVLink` and `CSVDownload` components and these components have no direct relation to the KendoReact Grid. Therefore, I would suggest checking the data that is provided in the `data` property.

I hope this helps, but please let me know if you have any further questions.

Regards,
Wissam
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
General Discussions
Asked by
Ajit
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or