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

postback not completed after Export to Excel

5 Answers 243 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sudhindra Shetty
Top achievements
Rank 1
Sudhindra Shetty asked on 14 Jul 2011, 07:52 PM
Hi,

I am trying to use Serverside ExporttoExcel() function which when executed the page doesnot complete the postback.

The download completes but the page is not completing the page lifecycle.

I have Export to Excel in a dropdownList.When that is selected the save/cancel window comes up. Even when i do either of them the dropdown would still remain on export to excel.

Any help in this matter would be appreciated.

Thanks,
Ashwini

5 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 21 Jul 2011, 02:44 PM
Hello Ashwini,

The exported file will be streamed to the response and the response headers will be replaced. This means that a normal ASP.NET response will never reach the browser so the screen won't flick - instead, you will get file download dialog.

Best regards,
Daniel
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Yogesh
Top achievements
Rank 1
answered on 14 Nov 2012, 11:45 AM
We are also using the "ExportToExcel" functionality. The Excel file gets generated, but after that all server side events on the page get disabled. i.e. After exporting all the other events on the page stop working.
However if we refresh the page, the events start getting triggering again.
0
Daniel
Telerik team
answered on 14 Nov 2012, 05:16 PM
Hello Yogesh,

Could you help me reproduce this issue? You can submit a formal support ticket with a simple demo attached. If it is simple enough you can post it here in the forum within code-snippet blocks.

Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
John
Top achievements
Rank 1
answered on 29 Apr 2014, 04:18 PM
Was this issue ever resolved? I'm experiencing the same problem; after exporting to Excel, any server side events on the page get disabled until the client manually reloads the page. Is there a way to either:

- Get server-side events to work again, or
- Make the page refresh itself after the Excel download completes?
0
Princy
Top achievements
Rank 2
answered on 30 Apr 2014, 06:34 AM
Hi John,

Make sure you have not used RadAjaxPanel and RadAjaxManager together in your page. Note that it is not a supported scenario to use RadAjaxPanel and RadAjaxManager to update the same controls on the page or add RadAjaxPanel into RadAjaxManager settings. Therefor make sure you remove the RadAjaxPanel and use only RadAjaxManager to ajaxify the controls in order to avoid possible issues with the Ajax functionality.
If this doesn't solve the issue, paste your full code snippet.

Thanks,
Princy
Tags
Grid
Asked by
Sudhindra Shetty
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Yogesh
Top achievements
Rank 1
John
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or