Kendo ui 剑道上载未在CSHTML中上载模板
我使用剑道上传如下Kendo ui 剑道上载未在CSHTML中上载模板,kendo-ui,kendo-asp.net-mvc,Kendo Ui,Kendo Asp.net Mvc,我使用剑道上传如下 @(Html.Kendo().Upload() .Name("files") .TemplateId("fileTemplate2") .Async(a => a .Save("Save", "SignOff") .Remove("Remove", "SignOff") .AutoUpload(true)
@(Html.Kendo().Upload()
.Name("files")
.TemplateId("fileTemplate2")
.Async(a => a
.Save("Save", "SignOff")
.Remove("Remove", "SignOff")
.AutoUpload(true)
)
.Events(events => events.Upload("onUpload"))
)
我的模板是这样的
<script id="fileTemplate2" type="text/x-kendo-template">
<span class='k-progress'></span>
<div class='file-wrapper'>
<h4 class='file-heading file-name-heading'>Name: #=name#</h4>
<h4 class='file-heading file-size-heading'>Size: #=size# bytes</h4>
<button type='button' class='k-upload-action'></button>
</div>
</script>
姓名:#=姓名#
大小:#=大小#字节
实际上,我已经将模板放在了上传声明的顶部。但是上传并没有加载模板。请帮帮我,我哪里做错了
<link href="../../Content/kendo/upload.kendo.common.min.css" rel="stylesheet" />
<link href="../../Content/kendo/upload.kendo.silver.min.css" rel="stylesheet" />
<script src="../../Scripts/kendo/kendocdn.kendo.all.min.js"></script>
尝试更新dll。我想这会解决你的问题