If retry of failed upload successful, the upload still has error styling applied

5 posts, 0 answers
  1. Bob
    Bob avatar
    123 posts
    Member since:
    Sep 2012

    Posted 08 Oct 2014 Link to this post

    If retry of failed upload successful, the upload still has error styling applied.  How do we "refresh" the list item with appropriate styling?  See screenshot attached.

    Relevant code:

    <input name="files" id="files" type="file" />

    $("#files").kendoUpload({
        async: {
            saveUrl: "/Referral/UploadAttachment",
            removeUrl: "/Referral/DeleteAttachment",
            autoUpload: true
        },
        error: onError,
        upload: onUpload,
        remove: onRemove
    });


  2. Bob
    Bob avatar
    123 posts
    Member since:
    Sep 2012

    Posted 08 Oct 2014 in reply to Bob Link to this post

    Worked around this weirdness by using success event.  By default, when a file is retried and works, the "k-file-success" class is applied, but the "k-file-error" class is not removed.

    function onSuccess(e)
    {
        $(".k-file-success").removeClass(" k-file-error");
    }
  3. Kendo UI is VS 2017 Ready
  4. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2159 posts

    Posted 09 Oct 2014 Link to this post

    Hello Bob,


    We had such issues in older Kendo UI version, but it has been fixed in recent releases. What is the currently used version? If it is older than Q2 2014, I would suggest updating to a newer one.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Bob
    Bob avatar
    123 posts
    Member since:
    Sep 2012

    Posted 09 Oct 2014 in reply to Dimiter Madjarov Link to this post

    We are currently on 2014.Q1 so I will leave my hack in place until we can test out latest version.  Thanks.
  6. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2159 posts

    Posted 09 Oct 2014 Link to this post

    Hello Bob,


    Thanks for the update. Indeed the workaround is suitable for updating the file status in older versions.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready