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

kendoUpload becomes undefined after disabling it on IE9

1 Answer 94 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Guillermo
Top achievements
Rank 1
Guillermo asked on 30 Aug 2013, 03:14 PM
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.

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 02 Sep 2013, 08:28 AM
Hello Guillermo,


I am not sure that I understand the current scenario. When the Upload widget is disabled, the user cannot remove any files. This behavior could be observed in the API demo. Additionally in the mentioned demo I tested to disable and then access the widget in IE 9 and it works as expected.

Could please provide some additional information if the problem is persisting so I could assist you further?


Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Upload
Asked by
Guillermo
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or