Progress indicator regardless of file size?

Thread is closed for posting
11 posts, 0 answers
  1. Michael Dunbar
    Michael Dunbar avatar
    129 posts
    Member since:
    Sep 2007

    Posted 07 Aug 2009 Link to this post

    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
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 10 Aug 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michael Dunbar
    Michael Dunbar avatar
    129 posts
    Member since:
    Sep 2007

    Posted 10 Aug 2009 Link to this post

    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
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 10 Aug 2009 Link to this post

    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.
  6. Michael Dunbar
    Michael Dunbar avatar
    129 posts
    Member since:
    Sep 2007

    Posted 11 Aug 2009 Link to this post

    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.
  7. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 11 Aug 2009 Link to this post

    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.
  8. Maher
    Maher avatar
    3 posts
    Member since:
    Jun 2009

    Posted 15 Aug 2009 Link to this post

    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.





  9. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 17 Aug 2009 Link to this post

    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.
  10. Vijay
    Vijay avatar
    5 posts
    Member since:
    Apr 2012

    Posted 11 Apr 2012 Link to this post

    Hi, 

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

    Cheers Vijay
  11. Vijay
    Vijay avatar
    5 posts
    Member since:
    Apr 2012

    Posted 11 Apr 2012 Link to this post

    Hello, 

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

    Cheers Vijay
  12. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 16 Apr 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017