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

Simulate progress

3 Answers 49 Views
ProgressArea
This is a migrated thread and some comments may be shown as answers.
Cheryl
Top achievements
Rank 1
Iron
Cheryl asked on 19 May 2014, 03:22 AM
Is there a way to simulate progress?

I'm attempting to use the custom progress with an Input File object.  It is the processing of the file that I need to simulate but there aren't any measurable steps as such. 

I note that I've tried to use the input=file demo example that does not have any codebehind code, and the only way I could get the ProgressArea to display was to put code in the codebehind of the button click.

There is only 1 file to be uploaded, therefore the "While" is really only needed once otherwise it loops through the processing repeatedly.

The actual processing of the file is done using an external method from the project.

Perhaps I'm missing something?

Thanks

3 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 21 May 2014, 08:35 AM
Hello Cheryl,

Please review the following demo how the progress area is integrated with a standard input.

Regards,
Peter Filipov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Cheryl
Top achievements
Rank 1
Iron
answered on 23 May 2014, 03:08 AM
Thanks but I already have that.

I have got it going with the input=file, but only when I have codebehind code as per the custom progress. 

What I wanted to know was there a way to simulate the progress when there aren't any measureable steps as such - as it is the processing of the file uploaded that I want to show, but that processing is done in a backend dll, not in the page itself.

I suspect there isn't, and showing the 5% of the upload which it then sits on until its complete is not helpful.

So what I've done instead is I'm using the progresstemplate to show the loading.gif which won't show by itself due to the button not being able to be ajaxified.  Not a bad compromise.
0
Peter Filipov
Telerik team
answered on 27 May 2014, 08:12 AM
Hello Cheryl,

It is not possible to track the progress without measurable steps. The progress area and progress manager support only file upload tracking out of the box without adding custom code like in the demos. You need only to register the RadUpload module and the progress handler.

Regards,
Peter Filipov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ProgressArea
Asked by
Cheryl
Top achievements
Rank 1
Iron
Answers by
Peter Filipov
Telerik team
Cheryl
Top achievements
Rank 1
Iron
Share this question
or