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

Stop progress of Progress Area when cancelled

5 Answers 67 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Darth Vader
Top achievements
Rank 1
Darth Vader asked on 10 Mar 2015, 02:56 AM
Hello Telerik Team,

I have a custom progress area built using the RadProgressArea to depict to the user the percentage of the process when they are sending a request. I would like to know if it is possible to stop the progression of the progress area when the cancel button was clicked. I have been trying multiple solutions, I have injected a javascript that will stop the postback of the request but the progress still continues. Do you have any solutions on this? Thanks! :)

5 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 12 Mar 2015, 12:52 PM
Hi,

Add RadProgressManager and call the stopAsyncPolling() method

$find('Radprogressmanager1').stopAsyncPolling();

Regards,
Hristo Valyavicharski
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
Darth Vader
Top achievements
Rank 1
answered on 16 Mar 2015, 04:11 AM
Hello Hristo,

I tried your suggested solution. But I am encountering an error, see error below.

Line: 239
Error: Unable to get property 'stopAsyncPolling' of undefined or null reference

I am using RadControls for ASP.NET AJAX Q2 2010 NET35. Do I need to update?

Thanks! :)
0
Hristo Valyavicharski
Telerik team
answered on 18 Mar 2015, 02:25 PM
Yes this method was exposed in later version. Try to call the private method:

$find('Radprogressmanager1')._stopAsyncPolling();

Regards,
Hristo Valyavicharski
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
Darth Vader
Top achievements
Rank 1
answered on 25 Mar 2015, 04:52 AM
Hi Hristo,

I tried to call the private method in the .aspx, it worked but it only closes the progress bar and once I clicked the button again the process continues.

And one more thing, I implemented the script on the user controller (.ascx) that is being referenced in the .aspx and whenever I click the cancel button. I am encountering an error, see error below.

Line: 239
Error: Unable to get property 'stopAsyncPolling' of undefined or null reference

Do you have any idea why this is happening?


0
Hristo Valyavicharski
Telerik team
answered on 27 Mar 2015, 03:13 PM
Please attach sample project, so we can try to debug your code.

Thank you.

Regards,
Hristo Valyavicharski
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
AsyncUpload
Asked by
Darth Vader
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Darth Vader
Top achievements
Rank 1
Share this question
or