Reputation: 11
I have a project where I using the Angular Kendo UI Grid and would like to be able to export the data to an excel document. I have looked at the ng-grid csv export but it appears one is required to use put in a plugins option but the Angular Kendo UI Grid does not have this. Could someone point me in the right direction?
Thanks
Upvotes: 1
Views: 3495
Reputation: 2583
Now you can just add the following to your grid options object:
toolbar: [ 'excel' ],
excel: {
allPages: true,
fileName: 'staticFileName.xlsx'
}
http://docs.telerik.com/kendo-ui/web/grid/excel-export#enable-excel-export
Upvotes: 1
Reputation: 8775
There is a kendo-grid-csv-download project you can attempt to use.
Another way to accomplish this would be to create a server side page/URL in your language of choice (Python? NodeJS?) (Example: example.com/downloadcsv?searchTerm=abc&filter=def
) and have it query the same API/URL that your Angular code queried to display the grid, then generate the CSV to download there.
Upvotes: 0