Custom Progress Bar
A custom progress bar can be created using the UploadProgress class as well as the C1Window and C1ProgressBar controls.
To create a custom progress bar, set the ShowProgress property to false so the built-in progress bar doesn’t appear when you upload a file.
Sample Project
Available
For an example to see how to create a custom progress bar in the C1Upload control, see C1Upload's Custom progess bar page in the ControlExplorer sample.
You can use the UploadProgress class to make the progress bar more informative for users by specifying progress details such as the name of the current file being uploaded, the total size of the file being uploaded, the amount of the file that has been uploaded, the length of the time that has elapsed since the upload started, estimated time it will take for the file to upload, and the upload speed for the file.
The UploadProgress class provides the following properties that can be used to format the progress details for the custom progress dialog:
Property |
Description |
Gets a value that indicates whether the session is active. | |
Gets the current upload file. | |
Gets the elapsed time in a second. | |
Gets the progress value ranging from 0.0 to 1.0. | |
Gets the received bytes. | |
Gets the remaining time in a second. | |
Gets the upload speed. | |
Gets the total bytes. |
|