In my app I am disabling the kendoUpload widget when the user has chosen 5 files to upload. But - if the user removes one of those files to download, I will enable the kendoUpload widget.
My issue is that once I call the disable() method in the kendoUpload widget - the next time I try to access the kendoUpload widget it is undefined.
Here's my function.
function setAddAttachmentButton(disable) {
var kendoUpload = $("#attachmentUpload").data("kendoUpload");
if (kendoUpload == undefined)
return;
if (disable) {
kendoUpload.disable();
} else {
kendoUpload.enable();
}
}
This is only happening on IE9 - the other browsers work fine.
My issue is that once I call the disable() method in the kendoUpload widget - the next time I try to access the kendoUpload widget it is undefined.
Here's my function.
function setAddAttachmentButton(disable) {
var kendoUpload = $("#attachmentUpload").data("kendoUpload");
if (kendoUpload == undefined)
return;
if (disable) {
kendoUpload.disable();
} else {
kendoUpload.enable();
}
}
This is only happening on IE9 - the other browsers work fine.