Determine if upload is in progress

3 posts, 0 answers
  1. Einar
    Einar avatar
    19 posts
    Member since:
    Jul 2014

    Posted 12 Dec 2014 Link to this post

    Is there a property that I can reliably use to determine if the CloudUpload is currently working on 1 or more uploads? I suppose I could subscribe to one of the events and set a custom property if not.
  2. Einar
    Einar avatar
    19 posts
    Member since:
    Jul 2014

    Posted 12 Dec 2014 Link to this post

    Here's what I came up with:

            public bool IsUploading
            {
                get
                {
                    return cloudUpload.Items.Any(x=> x.State == CloudUploadFileState.Uploading 
                        || x.State == CloudUploadFileState.NotStarted);
                }
            }
  3. UI for WPF is Visual Studio 2017 Ready
  4. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 15 Dec 2014 Link to this post

    Hello Einar,

    Another approach would be to use the ItemsSummary property of the RadCloudUpload control, it contains information about the count of uploaded, uploading, canceled, cancelling, failed, invalid, not started item.

    I hope this information helps. Please let us know if you need further assistance.

    Kind regards,
    Kiril Vandov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top