Async Upload Success Handler fires only Once for Multiple Files

2 posts, 0 answers
  1. Jaime
    Jaime avatar
    60 posts
    Member since:
    Mar 2013

    Posted 14 Dec 2013 Link to this post

    I have an Kendo upload control set to upload multiple files. The files upload as expected. The problem that I am facing is that I have to update a grid based on the files that were just uploaded. The problem is that the success handler is only fired once upon completion of the uploads. These are handled quickly as they are asynchronous. So, basically when the the success handler is reached I call This results in the datasource reading only the first record from the server since the others are not finished processing. There is no easy way to sort this problem out. The complete handler is fired immediately after the success handler so that doesn't help either. Seems like a bug to me but let me know if I am wrong. The success handler should fire once for each file and the complete handler should be fired only after all the files are uploaded successfully or not(am I wrong?).
  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2213 posts

    Posted 14 Dec 2013 Link to this post

    Hi Jaime,

    Indeed the success event is fired once for each file and the complete event is fired after all files are uploaded. This behavior could be observed in our events demo.

    If the problem is still persisting, please send me a small runnable isolated example, which demonstrates the issue, so I could assist you further.

    I am looking forward to hearing from you.

    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top