Is there a way to determine if an upload has started in client code?

Thread is closed for posting
4 posts, 0 answers
  1. David
    David avatar
    19 posts
    Member since:
    Nov 2008

    Posted 11 Nov 2008 Link to this post

    This is for RadControls for ASP.NET AJAX Q3 2008.

    I need to determine, in Javascript, if an upload is currently being processed.  Is there a method to accomplish this easily?

    Thanks,

    David
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 12 Nov 2008 Link to this post

    Hi David,

    Yes, you can. Just add a handler to the OnClientProgressStarted client-side event of RadProgressManager.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. David
    David avatar
    19 posts
    Member since:
    Nov 2008

    Posted 13 Nov 2008 Link to this post

    I seem to not have made myself clear.

    I have some "background" javascript code that needs to handle processing differently if an upload is in process on the page or not.  As this code needs to make Ajax calls, I do not want it to do so while an upload is running.  So, what I need is an indicator that the upload is in process or not.

    If there is no "indicator", then I can use the OnClientProcessingStarted event to set one, but then I will need to clear it in another event also.  Is there an equivalant OnClientProcessingCompleted event?  I did not see one in the documentation.

    David
  5. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 14 Nov 2008 Link to this post

    Hi David,

    No, there is not an intrinsic method in RadUpload because the form submission is actually done by some other element. You could use the OnClientClick property of the submit button though.

    Regards,
    Erjan Gavalji
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top