Export Grid to Excel

5 posts, 1 answers
  1. Phillip
    Phillip avatar
    7 posts
    Member since:
    Dec 2015

    Posted 31 Oct 2018 Link to this post

    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.
  2. Answer
    Stefan
    Admin
    Stefan avatar
    2909 posts

    Posted 01 Nov 2018 Link to this post

    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
  3. Phillip
    Phillip avatar
    7 posts
    Member since:
    Dec 2015

    Posted 01 Nov 2018 Link to this post

    Thanks Stefan, that worked.  Any idea how to get this working with the npm jszip package? 
  4. Stefan
    Admin
    Stefan avatar
    2909 posts

    Posted 02 Nov 2018 Link to this post

    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
  5. Phillip
    Phillip avatar
    7 posts
    Member since:
    Dec 2015

    Posted 02 Nov 2018 in reply to Stefan Link to this post

    That's what I figured.  Thanks for your help.
Back to Top