Stop progress of Progress Area when cancelled

6 posts, 0 answers
  1. Darth Vader
    Darth Vader avatar
    5 posts
    Member since:
    Mar 2015

    Posted 09 Mar 2015 Link to this post

    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! :)
  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 12 Mar 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Darth Vader
    Darth Vader avatar
    5 posts
    Member since:
    Mar 2015

    Posted 15 Mar 2015 in reply to Hristo Valyavicharski Link to this post

    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! :)
  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 18 Mar 2015 Link to this post

    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.

     
  6. Darth Vader
    Darth Vader avatar
    5 posts
    Member since:
    Mar 2015

    Posted 24 Mar 2015 in reply to Hristo Valyavicharski Link to this post

    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?


  7. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 27 Mar 2015 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017