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

Detect click on the Clear button

1 Answer 160 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 03 Nov 2016, 02:34 PM

Hi,

I use Upload to select multiple files. I don't want to use web services to process the upload, so my code for Upload creation looks like this:

$('#uploader').kendoUpload({
    async: {
        saveUrl: "notNeeded",
        removeUrl: "notNeeded",
        autoUpload: false
    }
});

When I select some files, there is a list of the selected files. Under the list there are buttons Clear and Upload.

I want to perform some action when Clear is clicked, but I don't know how to detect it.

Listening to "remove" event did not help.

Thanks for the answers,

Boris

 

dddd

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 04 Nov 2016, 09:09 AM

Hello Boris,

Please excuse us for this inconvenience. A clear event will be present in our next official release. At the moment you could attach a click handler to the button via jQuery. Here is a sample approach to achieve this.

Regards,
Dimiter Madjarov
Telerik by Progress
 
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
 
Tags
Upload
Asked by
Boris
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or