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

update progrebar when export to excel

1 Answer 40 Views
Window
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 13 Sep 2012, 02:58 PM
I have rad window with search criteria... when user selects the criteria and press submit button it will get the records from the database and assigning the records from data table to excel. Is there any  way i can show the progress bar in the rad window while export to excel.

Is there anything like radupload..

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 14 Sep 2012, 11:31 AM
Hi Raj,

You can try the approach from this demo to show a progress or you can show a RadAjaxLoadingPanel when the button is clicked as explained here. The problem in all cases is the disposal of the page - you cannot download a file with a partial postback so the loading panel for example will be disposed when the page posts back. Then, browsers do not offer events for when a file is downloaded so you cannot be notified when this happens in order to execute some logic. You can also try having a hidden iframe that you can update in an AJAX request that will keep the loading panel shown. This iframe can be navigated to a file so that t he user is prompted to save/open it but this will require that the file you export to is saved on the server.


Regards,
Marin Bratanov
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.
Tags
Window
Asked by
Raj
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or