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

Loading Panel with File Download

1 Answer 225 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 21 Aug 2017, 08:10 PM

I am working on a simple form to generate a report in Excel format. There are a few text boxes and date pickers and then a button. The event for the button runs a length SQL query and then creates an excel file with the results and presents the file using Response.OutputStream. The page in itself works fine but I'd like to add a RadAjaxLoadingPanel while the button event is working. I've tried at least a half dozen different methods and it seems all I can ever get is either the loading panel goes off but the file is never presented  or nothing happens at all. Can someone point me to a demo or something that does this? 

 

I've tried the AjaxLoadingPanel Demo and the AjaxLoadingPanel - Explicit Show/Hide

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 24 Aug 2017, 01:33 PM

Hello Ryan,

This is expected with MS AJAX - sending a file during a partial postback breaks the response, and the loading panel does not capture full postbacks.

What I can suggest is that you follow an approach similar to the following sample: http://www.telerik.com/support/code-library/show-loading-panel-when-exporting-radgrid.

Regards,

Marin Bratanov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Ajax
Asked by
Ryan
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or