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

Using RadProgressArea for custom monitoring

1 Answer 80 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 04 Aug 2010, 01:03 AM
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.

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 09 Aug 2010, 09:33 PM
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
Tags
Upload (Obsolete)
Asked by
Dave
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or