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

Progress indicator regardless of file size?

10 Answers 127 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Michael Dunbar
Top achievements
Rank 2
Michael Dunbar asked on 07 Aug 2009, 02:23 PM
Is it possible to display the progress indicators regardless of the size of the file being uploaded? I would still like a visual indicator for my users even if the file is uploaded in a few seconds. I've currently just dropped the indicators in as follows, but we don't currently allow uploads of over 10MB meaning I haven't seen these indicators yet :-)

<telerik:RadProgressManager ID="progressManager" runat="server" /> 
                <telerik:RadProgressArea ID="progressArea" runat="server"  
                    EnableEmbeddedSkins="false" Skin="FileExplorer"  
                    DisplayCancelButton="true" > 
                    <Localization Uploaded="Uploaded" /> 
                </telerik:RadProgressArea> 

And in the page load event I call this function:

private void SetProgressAreaProperties() 
    { 
        progressArea.ProgressIndicators = ProgressIndicators.CurrentFileName | 
            ProgressIndicators.RequestSize | 
            ProgressIndicators.TimeElapsed | 
            ProgressIndicators.TimeEstimated | 
            ProgressIndicators.TotalProgress | 
            ProgressIndicators.TotalProgressBar | 
            ProgressIndicators.TotalProgressPercent | 
            ProgressIndicators.TransferSpeed; 
    } 

EDIT: Oh and not sure if it matters but I am using a standard HTML upload control as opposed to your file upload control for this.

Thanks,

Michael

10 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 10 Aug 2009, 11:15 AM
Hello Michael Dunbar,

Please have in mind that the upload speed on a local host is much higher than real upload speed that your users will experience. All in all it is not possible to display the area if the upload takes less than 2-3 seconds, because the ajax call cannot complete in such a short time. You can try to set the RefreshPeriod property of the RadProgressManager to 50 (the default is 500) ms. However keep in mind that the value is very low (50ms) both the client CPU and server CPU load would increase because of the increased number of AJAX requests performed.

All the best,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Michael Dunbar
Top achievements
Rank 2
answered on 10 Aug 2009, 11:25 AM
Thanks Genady, I shall give that a try.

I understand that local will be difficult to test on, but I was also unable to see the indicators when deploying to a test server. I was uploading a 10MB file that took around 5 seconds to upload (it is a test server in our network so still very quick compared to the Live web) and still did not see the indicators. In fact, the only time I have seen the indicators are when I forced them to display via JavaScript.

Anyway, I'll let you know if adjusting RefreshPeriod property helps.

Thanks again,

Michael
0
Genady Sergeev
Telerik team
answered on 10 Aug 2009, 02:07 PM
Hi Michael Dunbar,

The fact that you don't see the progress bars might be an indicator of a problem. Please try to upload a file around 50mb. If still no progress area is shown, there is something broken. Can you confirm that you see the area for large files?

Regards,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Michael Dunbar
Top achievements
Rank 2
answered on 11 Aug 2009, 08:08 AM
No, I'm still not seeing the indicators although no error is thrown. I am going to try updating to the latest version of the controls as I am still using the last build from 2008. Rather annoyingly it take me about a day to update as you keep changing the way the skins work for various controls which when you have custom skins means a rewrite. Anyway, that is another matter for another thread :-)

I'll let you know how I get on with the latest version.
0
Genady Sergeev
Telerik team
answered on 11 Aug 2009, 03:18 PM
Hello Michael Dunbar,

Have in mind that there is a problem with the progress area under FireFox 3.5 for RadControls versions prior to the last. If you are using FireFox 3.5 with older version of the controls it will probably not work. Looking forward to your replay.

Best wishes,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Maher
Top achievements
Rank 1
answered on 15 Aug 2009, 03:04 PM
I cannot get this to work...

This is my script:

      <telerik:RadUpload ID="RadUpload1" runat="server" MaxFileInputsCount="5" OverwriteExistingFiles="false"
        InputSize="47" ControlObjectsVisibility="None" OnClientFileSelected="validateFileName"
        EnableFileInputSkinning="false" />
      <telerik:RadProgressManager ID="Radprogressmanager1" runat="server" RefreshPeriod="50" />
      <telerik:RadProgressArea ID="progressArea1" runat="server" ProgressIndicators="CurrentFileName" Enabled="true"/>

And this is my code behind:
    progressArea1.ProgressIndicators = ProgressIndicators.CurrentFileName |
            ProgressIndicators.RequestSize |
            ProgressIndicators.TimeElapsed |
            ProgressIndicators.TimeEstimated |
            ProgressIndicators.TotalProgress |
            ProgressIndicators.TotalProgressBar |
            ProgressIndicators.TotalProgressPercent |
            ProgressIndicators.TransferSpeed;

I am running from debugger MSVC2008, I tried Firefox 3.5.2, IE8 on both Vista and XP.  I just downloaded the trial version of the controls this week, so they are fresh.





0
Genady Sergeev
Telerik team
answered on 17 Aug 2009, 03:12 PM
Hello Maher,

This is indeed strange. Can you provide me with your web-config and the aspx mark-up? Perhaps there is something wrong with the registration of the RadProgressHandlers. I have prepared a sample project that uses RadProgressArea in order to monitor file upload progress. You take it as a reference point.


Regards,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Vijay
Top achievements
Rank 1
answered on 11 Apr 2012, 10:06 AM
Hi, 

we have set RefreshPeriod to 1000ms. For some reason it executes for ever. Is there a way to deactivate it. 

Cheers Vijay
0
Vijay
Top achievements
Rank 1
answered on 11 Apr 2012, 10:09 AM
Hello, 

Telerik.RadUploadProgressHandler.ashx is being called every second. Is there a way to stop it?

Cheers Vijay
0
Genady Sergeev
Telerik team
answered on 16 Apr 2012, 09:05 AM
Hi,

You can use the RefreshPeriod property of RadProgressManager. It accepts miliseconds and can be used to fine tune the refresh period. This is to say that you can slow down the calls to RadUploadProgressHandler, however, you cannot stop them, otherwise no progress will be shown. RadProgressArea needs this calls to update its percentage.

Greetings,
Genady Sergeev
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.
Tags
Upload (Obsolete)
Asked by
Michael Dunbar
Top achievements
Rank 2
Answers by
Genady Sergeev
Telerik team
Michael Dunbar
Top achievements
Rank 2
Maher
Top achievements
Rank 1
Vijay
Top achievements
Rank 1
Share this question
or