How can I reset RadProgressContext.Current.TimeElapsed?

Thread is closed for posting
8 posts, 0 answers
  1. ksuh
    ksuh avatar
    44 posts
    Member since:
    Jul 2006

    Posted 03 Nov 2010 Link to this post

    I noticed that this property takes in object.  What can I put in here to make it zero?  This would be server-side.
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 04 Nov 2010 Link to this post

    Hi ksuh,

    You can use string when setting the TimeElapsed property. Like this:

    RadProgressContext.Current.TimeElapsed = "0";

    As expected, this code would set the TimeElapsed to zero.

    All the best,
    Genady Sergeev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. ksuh
    ksuh avatar
    44 posts
    Member since:
    Jul 2006

    Posted 05 Nov 2010 Link to this post

    When I do this, the time elapsed gets stuck at zero and doesn't update anymore.
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 10 Nov 2010 Link to this post

    Hello ksuh,

    Why would you want to do that? In general, If you set a value to the Elapsed time property, it is expected that you will continue setting values to it. Could you please explain your requirement so that we can give you a proper advice.

    Best wishes,
    Genady Sergeev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. ksuh
    ksuh avatar
    44 posts
    Member since:
    Jul 2006

    Posted 10 Nov 2010 Link to this post

    I use it to show progress for files being zipped before being downloaded, since the number of files being zipped can be rather large.  The user can download multiple times based on different criteria, so I would like to be able to reset the time elapsed to zero before the start of each download.
  7. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 16 Nov 2010 Link to this post

    Hi ksuh,

    The elapsed time indicator is auto only auto updated when files are being uploaded. When one uses Custom Progress monitoring the upload control has no way to measure how much time would the custom process take. One should provide this information on their own.

    Greetings,
    Genady Sergeev
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  8. ksuh
    ksuh avatar
    44 posts
    Member since:
    Jul 2006

    Posted 16 Nov 2010 Link to this post

    Well then why does the timer work initially then?  It's only when I reset it that it stops working.

    So basically you're saying I need to update the time myself, even though it already does so?
  9. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 19 Nov 2010 Link to this post

    Hello ksuh,

    Actually, it seems that I've confused myself. I originally thought that you talk about Estimated Time. The Elapsed Time is by default auto updated by RadProgressArea. Indeed, when a zero is set to it, the area stops auto incrementing it. Thank you for pointing this out. We will research the issue. Also, I've updated your telerik points for the involvement.

    Greetings,
    Genady Sergeev
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017