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 Blogs - https://code-sample.com and https://code-sample.xyz
My Book1 - BEST SELLING ANGULAR BOOK (INCLUDING ALL VERSIONS 2, 4, 5, 6, 7)
My Book2 - ANGULAR 2 INTERVIEW QUESTIONS BOOK - Both Books are Available on WorldWide.

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