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

RadProgressArea Questions

1 Answer 88 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Kevin Donahue
Top achievements
Rank 1
Kevin Donahue asked on 24 Sep 2010, 01:49 AM
I have two questions:

1) How do I cancel an upload using the RadUpload control?  I'm using it in conjunction with a RadProgressArea, and that has a cancel button on it, but how do I stop the upload client side (if possible) or at least tell that it was cancelled on the server?

2) I am using the RadProgressArea elsewhere in my project with custom data.  I start an operation and just use web service calls to do some work meanwhile updating the progress using the "update" method of the RadProgressArea.  After the operation is finished I use the "hide" method to stop the progress.  There are no post backs made to the server.  Once the progress has stopped, in visual studio I am getting this script running over and over again in an infinite loop:

var rawProgressData = {InProgress:false,ProgressCounters:false};

Any ideas what this is and how to stop it?

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 29 Sep 2010, 10:44 AM
Hello Kevin Donahue,

1) Pressing the Cancel button should cancel the upload and notify the server about this action. Does this happen on your side?

2) You need to set the OperationComplete property to true either on the server side or on the client. On the server, it can be accessed using:

RadProgressContext.Current.OperationComplete = true;

the RadProgressContext class is inside the Telerik.Web.UI namespace.

On the client you can add handler for the OnClientProgressUpdating event of RadProgressManager and set true to the args.ProgressData.OperationComplete property


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
Tags
Upload (Obsolete)
Asked by
Kevin Donahue
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or