我有一个剑道上传的问题。上传文件后,我在选择文件右侧得到"完成"one_answers"正确勾号"。我怎么才能去掉呢?
保存按钮后,点击我的表单上传控制文件被删除,但"完成"one_answers"右勾号"保持不变。
//Kendo Upload control
@(Html.Kendo().Upload()
.Name("files")
.Messages( m => m.Select("Browse"))
.Async(a => a
.Save("SaveAttachment", "Document")
.Remove("Remove", "Document")
.AutoUpload(true)
)
.Events(events => events
.Success("onSuccess")
)
.Multiple(false)
)
@(Html.Kendo().Upload()
.Name("files")
.Messages( m => m.Select("Browse"))
.Async(a => a
.Save("SaveAttachment", "Document")
.Remove("Remove", "Document")
.AutoUpload(true)
)
.Events(events => events
.Success("onSuccess")
)
.Multiple(false)
)
要从KendoUpload控件中删除内置文本,请使用空字符串覆盖本地化属性。在你的例子中,删除"Done":
$("#files").kendoUpload({
multiple: true,
async: {
saveUrl: "...",
removeUrl: "...",
autoUpload: false
},
localization: {
// Override built-in text "Done"
headerStatusUploaded:"",
statusUploaded:""
}
...
});
你可以直接使用
$(".k-upload-status").remove();
对我来说很有魅力
下面将完全删除状态行。
@(Html.Kendo().Upload()
.Name("Files")
.Async(a => a
.Save("SaveFiles", "Controller")
.AutoUpload(false)
)
.Events(x=>x.Complete("onUploadComplete"))
)
<script type="text/javascript">
function onUploadComplete(e) {
var fileStatusRow = $("#uploadContainer ul.k-upload-files");
fileStatusRow.hide('slow', function () { fileStatusRow.remove(); });
}
</script>