This is a migrated thread and some comments may be shown as answers.

Determine if upload is in progress

2 Answers 50 Views
CloudUpload
This is a migrated thread and some comments may be shown as answers.
Einar
Top achievements
Rank 1
Einar asked on 12 Dec 2014, 03:56 PM
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 Answers, 1 is accepted

Sort by
0
Einar
Top achievements
Rank 1
answered on 12 Dec 2014, 04:55 PM
Here's what I came up with:

        public bool IsUploading
        {
            get
            {
                return cloudUpload.Items.Any(x=> x.State == CloudUploadFileState.Uploading 
                    || x.State == CloudUploadFileState.NotStarted);
            }
        }
0
Kiril Vandov
Telerik team
answered on 15 Dec 2014, 03:13 PM
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.

 
Tags
CloudUpload
Asked by
Einar
Top achievements
Rank 1
Answers by
Einar
Top achievements
Rank 1
Kiril Vandov
Telerik team
Share this question
or