Loading Panel with File Download

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    1 posts
    Member since:
    Apr 2017

    Posted 21 Aug Link to this post

    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

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3908 posts

    Posted 24 Aug Link to this post

    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.
Back to Top