0
我使用的是劍道上載如下劍道上傳不CSHTML上傳模板
@(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>