I'm using Kendo UI v2014.3.1119
I could instantiate a kendo element:
$("#files").kendoUpload({
async: {
autoUpload: false
}
, multiple: false
});
However, when bind to a button event:
$('#uploadBtn').on('click', function (e) {
e.preventDefault();
var hey = $('#files').data('kendoUpload');
console.log(hey.getFiles())
});
I got the following error:
Uncaught TypeError: hey.getFiles is not a function
I followed the example from here
Not sure if this is a version issue or something I did incorrectly? Please help !
Thanks