kendoUpload becomes undefined after disabling it on IE9

2 posts, 0 answers
  1. Guillermo
    Guillermo avatar
    20 posts
    Member since:
    Nov 2012

    Posted 30 Aug 2013 Link to this post

    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.
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 02 Sep 2013 Link to this post

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