how to remove item in selected list for kendo ui upload

Remove item in selected list for kendo ui upload

Hello everyone, I am going to share the code-sample for how to Reset and Destroy all the uploaded files in Keno UI, The code sample as given below.

//Reset all the upload files.
$(".k-upload-files").remove();
$(".k-upload-status").remove();
$(".k-upload.k-header").addClass("k-upload-empty");
$(".k-upload-button").removeClass("k-state-focused");

                         OR
//Destroy all the upload files.
$("#files").destroy();


In the above, both destroy and remove are used to reset the uploaded files in Keno UI and Also used to add css class for upload empty and remove the css class focused.
ANIL SINGH

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

www.code-sample.com/. Powered by Blogger.
^