Hi,
I've a custom template to delete, download uploaded files. I would like to clear the deleted file from the upload control list after calling the 'deleteFiles' JS function in my code. Please do let me know how to achieve this. Thanks.
Code snippet:
<script id="fileTemplate" type="text/x-kendo-template">
<span class='k-progress'></span>
<div >
<label class="control-label">Name: #=name#</label>
<button type='button' class='btn btn-primary glyphicon glyphicon-remove pull-right' id="deleteFile" onclick="deleteFiles('#=name#', '#=files[0].extension#')"></button>
<button type='button' class='btn btn-primary glyphicon glyphicon-download pull-right' id="downloadFile" onclick="downloadFiles('#=name#')"></button>
@*<span class='file-icon #=addExtensionClass(files[0].extension)# pull-right'></span>*@
@*<p class='file-heading file-size-heading'>Size: #=size# bytes</p>*@
</div>
</script>