for.jquery.2019.1.220.com Commercial для экспорта в Excel в kendo_ui_grid,
пока я запускаю код, я получаю сообщение об ошибке ниже,
{"Контроллер для пути '/kendo.all.min.js.map' не найден или не реализует IController."}
В консоли браузера я получил ошибку ниже
ReferenceError: Excel не определен в / Administration / AgentsTab
Мой код,
<html>
<head>
<script type="text/javascript" src= "../../Scripts/kendo-2019/jquery.min.js"></script>
<script type="text/javascript" src="../../Scripts/kendo-2019/jszip.min.js"></script>
<script type="text/javascript" src="../../Scripts/kendo.all.min.js"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery/jquery.validate.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/nvs/nvs.jquery.validate.unobtrusive.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/nvs/nvs.validators.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/pos.views.js")"></script>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.1.220/styles/kendo.common.min.css"/>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.1.220/styles/kendo.rtl.min.css"/>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.1.220/styles/kendo.silver.min.css"/>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.1.220/styles/kendo.mobile.all.min.css"/>
<!--<script type="text/javascript" src="@Url.Content("~/Scripts/kendo-2019/kendo.excel.min.js")"></script>-->
<!-- <script src="fttps:///~/Scripts/kendo-2019/kendo.all.min.js"></script>
<script src="fttps:///~/Scripts/kendo-2019/kendo.excel.min.js"></script>
<script src="fttps:///~/Scripts/kendo-2019/jszip.min.js"></script>
<script src="fttps:///~/Scripts/kendo-2019/jquery.min.js"></script>-->
<!-- <script src=@Url.Content("~/Scripts/kendo-2019/kendo.all.min.js")></script>
<script src=@Url.Content("~/Scripts/kendo-2019/kendo.excel.min.js")></script>
<script src=@Url.Content("../../Scripts/kendo-2019/kendo.all.min.js")></script>-->
</head>
<body>
<!--<div id="searchtemplate" >
<a role="button" class="k-button k-button-icontext k-grid-excel" href="C:\HID project\HID-Dev-Bucks\NVSComponents\MVCWebUIComponent\Controllers\AdministrationController.cs\AgentsTab"><span class="k-icon k-i-excel"></span>Export to Excel</a>
</div>-->
<div id="example">
<div id="AgentsGrid"> </div>
<script>
$("#AgentsGrid").kendoGrid({
toolbar: [excel],
excel: {
fileName: "Kendo UI Grid Export.xlsx",
proxyURL: "fttp:\\\C:\HID project\HID-Dev-Bucks\NVSComponents\MVCWebUIComponent\Controllers\AdministrationController.cs\AgentsTab",
filterable: true
},
dataSource: {
type: "odata",
transport: {
read: "fttp:\\\C:\HID project\HID-Dev-Bucks\NVSComponents\MVCWebUIComponent\Controllers\AdministrationController.cs\AgentsTab"
},
schema: {
model: {
fields: {
Name: { type: "string" },
ProductTypes: { type: "string" },
InstallationType: { type: "string" },
IISVersion: { type: "string" },
AgentLastUpdate: { type: "string" }
}
}
},
pageSize: 7,
toolbar: ["create", "save"],
sortable: true,
pageable: true,
groupable: true,
filterable: true,
columnMenu: true,
reorderable: true,
resizable: true,
columns: [
{ field: "Name", title: "Name" },
{ field: "ProductTypes", title: "Product Types" },
{ field: "InstallationType", title: "InstallationType" },
{ field: "IISVersion", title: "IISVersion" },
{ field: "AgentLastUpdate", title: "AgentLastUpdate" }
]
}
});
</script>
</div>
</body>
</html>