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

How to Show loading panel for radgrid with Custom Export to Excel option

1 Answer 217 Views
Grid
This is a migrated thread and some comments may be shown as answers.
krishna
Top achievements
Rank 1
krishna asked on 29 Mar 2015, 04:10 PM
Hi Team,

We are using Custom Export to excel button to export the Radgrid data to excel. While exporting the data we are trying to show the spinner during the export  but we are unable to catch the file downloaded event, So even the file downloads the spinner still continues to spin. Is there any other option to show waiting panel in this case. please help me on this. Please find the code below.

We tried with Auto Export excel option "<CommandItemSettings ShowExportToExcelButton="true" />" of radgrid. But it's showing the data on the screen in datatable format. we need the file to be downloaded. Not getting the file download option in this case.

.aspx

<td>
<asp:ImageButton ID="ExportToExcel" src="images/Excel.png" OnClientClick="showspinner();" runat="server" OnClick="ExportToExcel_Click" width="50"/>
</td>

.aspx.cs

RadGridMigrationReport.MasterTableView.ExportToExcel();

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 01 Apr 2015, 12:36 PM
Hi Krishna,

Note that the exporting feature works only with regular postbacks. This means, that the asynchronous postback should be canceled when performing an export. Nevertheless you can examine the following code library which demonstrates how to show a loading panel during exporting the grid.

Regards,
Kostadin
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Grid
Asked by
krishna
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or