Detect click on the Clear button

2 posts, 0 answers
  1. Boris
    Boris avatar
    15 posts
    Member since:
    Aug 2015

    Posted 03 Nov Link to this post

    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

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 04 Nov Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
Back to Top