New to Kendo UI for jQueryStart a free 30-day trial

Clear

events

Fires when the files are cleared by clicking on the Clear button.

The cancelling of the cancel event prevents the clearing of the selected files.

Event Data

e Object

A custom event object. The event can be canceled similar to a standard jQuery event object by using e.preventDefault();.

<input type="file" name="files" id="photos" />
<script>
    $("#photos").kendoUpload({
        async: {
            saveUrl: "http://my-app.localhost/save",
            removeUrl: "http://my-app.localhost/remove",
			autoUpload: false
        },
        clear: onClear
    });

    function onClear(e) {
		// Optionally cancels the clear operation by calling the preventDefault method
        e.preventDefault();
    };
</script>
Not finding the help you need?
Contact Support