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

How can I reset RadProgressContext.Current.TimeElapsed?

7 Answers 162 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
ksuh
Top achievements
Rank 1
Veteran
ksuh asked on 03 Nov 2010, 11:19 PM
I noticed that this property takes in object.  What can I put in here to make it zero?  This would be server-side.

7 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 04 Nov 2010, 02:46 PM
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
0
ksuh
Top achievements
Rank 1
Veteran
answered on 05 Nov 2010, 05:34 PM
When I do this, the time elapsed gets stuck at zero and doesn't update anymore.
0
Genady Sergeev
Telerik team
answered on 10 Nov 2010, 03:46 PM
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
0
ksuh
Top achievements
Rank 1
Veteran
answered on 10 Nov 2010, 06:27 PM
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.
0
Genady Sergeev
Telerik team
answered on 16 Nov 2010, 11:37 AM
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.
0
ksuh
Top achievements
Rank 1
Veteran
answered on 16 Nov 2010, 08:07 PM
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?
0
Genady Sergeev
Telerik team
answered on 19 Nov 2010, 05:20 PM
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.
Tags
Upload (Obsolete)
Asked by
ksuh
Top achievements
Rank 1
Veteran
Answers by
Genady Sergeev
Telerik team
ksuh
Top achievements
Rank 1
Veteran
Share this question
or