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

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
http://www.code-sample.com
http://www.code-sample.xyz

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.