剑道UI Q3网格导出到Excel内置不起作用

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

本文关键字:Excel 内置 不起作用 UI Q3 网格 剑道      更新时间:2023-09-26

嗨,我正在使用我的网络应用程序kendo UI网格导出到Excel内置,它不保存任何记录,我提到过它,就像

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

//和

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

我只是对代理网址感到困惑? 这是什么意思?

您需要它来支持低于 10 的 Internet Explorer 版本和 Safari请查看服务器代理实现示例(.NET、PHP、Java(

低于

10 的 Internet Explorer 版本和 Safari 无法保存文件,并且 需要实现服务器代理。设置代理网址选项 以指定服务器代理 URL。

在 ASP.NET MVC 中,函数将是这样的:

[HttpPost]
        public ActionResult ExportButtonSave(string contentType, string base64, string fileName)
        {
            var fileContents = Convert.FromBase64String(base64);
            return File(fileContents, contentType, fileName);
        }
请注意,即使你

没有将其添加到网格,你所需要的只是将其添加到工具栏,选中 http://dojo.telerik.com/@MohQut/OdEpE