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

Export Grid to Excel

4 Answers 52 Views
Wrappers for React
This is a migrated thread and some comments may be shown as answers.
Phillip
Top achievements
Rank 1
Phillip asked on 31 Oct 2018, 05:08 PM
I'm using the kendo-grid-react-wrapper.  How do I do a simple excel export?  I was able to add the button adding the toolbar={["excel"]} property to the Grid but clicking the button did nothing.

4 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 01 Nov 2018, 09:27 AM
Hello, Phillip,

The Excel export requires a script called jszip to be loaded on the page:

https://docs.telerik.com/kendo-ui/framework/excel/introduction#requirements

The script has to be loaded in the index.html page.

I made an example as well:

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

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Phillip
Top achievements
Rank 1
answered on 01 Nov 2018, 06:20 PM
Thanks Stefan, that worked.  Any idea how to get this working with the npm jszip package? 
0
Stefan
Telerik team
answered on 02 Nov 2018, 07:08 AM
Hello, Phillip,

We have tried it before, but it seems that due to the module loading, the scripts are not loaded at the expected time.

We will make a research and if I find a way, I will share it here.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Phillip
Top achievements
Rank 1
answered on 02 Nov 2018, 12:37 PM
That's what I figured.  Thanks for your help.
Tags
Wrappers for React
Asked by
Phillip
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Phillip
Top achievements
Rank 1
Share this question
or