This is a migrated thread and some comments may be shown as answers.

How to reset Kendo Upload via Javascript

3 Answers 722 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 14 Jun 2016, 05:57 PM

How can I reset a Kendo Upload control based upon a button click event?

 

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 15 Jun 2016, 06:25 AM

Hello Jim,

This functionality is currently being developed for the Upload widget. We will add several API methods which will allow the developer to reset the widget according to different conditions. At the moment, a possible workaround is to destroy the widget and recreate it again.

Regards,
Dimiter Madjarov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jonathan
Top achievements
Rank 1
answered on 21 Jun 2017, 08:43 PM

Any word on a reset method? I'm still doing this:

                            $("#uxRelatedDocumentUploadDiv .k-upload-files").remove();
                            $("#uxRelatedDocumentUploadDiv .k-upload-status").remove();
                            $("#uxRelatedDocumentUploadDiv .k-upload.k-header").addClass("k-upload-empty");
                            $("#uxRelatedDocumentUploadDiv .k-upload-button").removeClass("k-state-focused");

0
Dimiter Madjarov
Telerik team
answered on 22 Jun 2017, 08:43 AM
Hi Jonathan,

Yes, you could use the clearAllFiles or removeAllFiles method to achieve the task.

Regards,
Dimiter Madjarov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Upload
Asked by
Jim
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or