Using RadProgressArea for custom monitoring

Thread is closed for posting
2 posts, 0 answers
  1. Dave
    Dave avatar
    5 posts
    Member since:
    May 2008

    Posted 03 Aug 2010 Link to this post

    Here's the general synopsis.

    I'm generating a report on the server end.
    1. The user goes to the page and clicks 'Generate Report' which calls server side generation
    2. The RadProgressArea shows up and updates it's details correctly
    3. After the report has been generated, it is saved on the server side
    Where I have a problem is step 4:
    4. Using either Response.TransmitFile or Response.WriteFile, send the newly generated report to the user.
    I need to do some server side code, which is why I just can't do a window.location to the filename and this is where I'm running into issues.

    When I change the response object to send the file, I lose the ability to:
    1. Make the ProgressArea disappear (normally it automatically does on the postback with an unchanged response object)
    2. Allow the user to click generate report again and repopulate the progressarea (the report still will generate fine, but the progress area remains static and doesn't reset.

    My idea solution would be:
    1. Click Generate Report
    2. RadProgressArea appears
    3. Once the report has finished generating, reset/hide/nullify the ProgressArea
    4. Call server side function to send file to user.

    I thought I could find a solution by registering a startup script to simply call the server side function to send the file, but then I read that AJAX doesn't have that functionality.

    I hope you understand the theory behind this, and I can provide some code if needed.
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 09 Aug 2010 Link to this post

    Hi Dave,

    I have tried to reproduce the problem in a sample project, however, no avail. I am attaching my test project to this replay, can you reproduce the problem on it? Basically, what I've done is to run a custom progress and after the latter has finished to write a text file to the response stream. The area seems to disappear as expected and on subsequent click on the submit button it appears fine.

    Sincerely yours,
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top