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

[Solved] IE9-friendly CSV Export?

5 Answers 205 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jeff
Top achievements
Rank 1
jeff asked on 23 Feb 2015, 08:11 PM
Is there a pure javascript method for exporting a csv from a grid that will work in IE9?

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 25 Feb 2015, 08:28 AM
Hi,

Currently Kendo UI doesn't support exporting to CSV. It supports Excel export though. The JavaScript method which does it is called saveAsExcel.

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
jeff
Top achievements
Rank 1
answered on 25 Feb 2015, 05:45 PM
Hi Atanas,
Thanks, that works great in more modern browsers (especially once I found allPages: true), but not on IE9.

I understand I would have to use the proxyURL:

excel: {
    fileName: "Kendo UI Grid Export.xlsx",
    filterable: true
},


For the proxy url, what can I do, do I need a servlet, or can I pull this off client side?

Thank you!
0
jeff
Top achievements
Rank 1
answered on 25 Feb 2015, 05:50 PM
That works great in more modern browsers (especially after I found the 'allPages: true'), but not at all in IE9 - I understand I need to use the proxyurl:

excel: {
        proxyURL: "/save"
    },

Can I pull this off client-side (localhost), do I need to write a servlet to handle this, or is there a more trivial way of handling this scenario?

Thank you!

0
jeff
Top achievements
Rank 1
answered on 25 Feb 2015, 05:51 PM
Sorry about the double post, the site/page errored and I thought I lost it all!
0
Atanas Korchev
Telerik team
answered on 26 Feb 2015, 06:38 AM
Hi Jeff,

The proxyURL should be a server-side method that streams the posted data as a file so the end-user can download it. More information is available in our documentation.

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
jeff
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
jeff
Top achievements
Rank 1
Share this question
or