Reputation: 719
I want to export my kendo UI Grid data to excel without any server callback. is it possible?
Upvotes: 1
Views: 693
Reputation: 3055
The kendo grid has support for exporting the data to excel natively with no server side support needed. All you need to do is inlude the 'excel' option in the toolbar and define any options on the excel export you need.
$("#grid").kendoGrid({
toolbar: ["excel"],
excel: {
fileName: "Kendo UI Grid Export.xlsx",
filterable: true,
allPages: true
},
See the kendo demo for grid exporting to excel Kendo Grid Export To Excel. The reason they include a callback URL is provide legacy browser support. Documentation on proxyURL states as such, but isn't needed if you don't have to support Safari, or IE 9 and below.
Upvotes: 2