简体   繁体   中英

kendo ui Q3 grid export to excel built in not working?

Hi every one I'm using my web app kendo ui grid export to excel built in, its not saving any record, I mentioned it like

toolbar: ["excel"],
        excel: {
            allPages: true
    },

//and

toolbar: ["excel"],
        excel: {
            fileName: "Kendo UI Grid Export.xlsx",
            proxyURL: "http://demos.telerik.com/kendo-ui/service/export",
            filterable: true
        },

I'm just confused about proxy url? what it means ?

You need this to support Internet Explorer versions below 10 and Safari Please review Server Proxy Implementations samples (.NET, PHP, Java)

Internet Explorer versions below 10 and Safari can't save a file and require the implementation of a server proxy. Set the proxyURL option to specify the server proxy URL.

In ASP.NET MVC the function will be something like this:

[HttpPost]
        public ActionResult ExportButtonSave(string contentType, string base64, string fileName)
        {
            var fileContents = Convert.FromBase64String(base64);

            return File(fileContents, contentType, fileName);
        }

Please note that all you need to make the export work is add it to toolbar even if you don't add it to grid, check http://dojo.telerik.com/@MohQut/OdEpE

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM