Disable postback/button until uploads are finished?

2 posts, 1 answers
  1. Jeremy
    Jeremy avatar
    14 posts
    Member since:
    Mar 2012

    Posted 30 Apr 2012 Link to this post

    Ok what we're trying to do here is upload multiple files along with something similar to a forum post. In order to do this, we need the post's ID to link the file to. Since the submission of the post and the attachments are on the same page, we're expecting to have them submitted at the same time. What I am doing right now is "catching" all of the files as the OnFileUploaded event fires, into the Cache to hold until after the ticket is processed (so that I can retrieve the Ticket ID from the database). 9 times out of 10 this work because all of the files have finished uploading before the user hits the submit button. However, in some cases where the user is finished with the ticket and one of the files is large enough to where it is still uploading when they hit the submit button, any files that are still uploading asynchronously will not make it in.

    So my question is, is there an existing technique to be used with the telerik control, or is there some way to disable the submit button while async uploads are still in progress?

  2. Answer
    Plamen avatar
    2959 posts

    Posted 01 May 2012 Link to this post

    Hi Jeremy,

    You can refer to this forum thread where similar issue have been already discussed.

    Hope this will be helpful.

    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top