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

Error while exporting data to Excel from RadGrid

3 Answers 564 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
EEmmanuelLG
Top achievements
Rank 1
EEmmanuelLG asked on 07 Feb 2018, 01:39 AM

When I try to export data to Excel from RadGrid in localhost it works fine, but if I publish my page in the server it stops working.

I have the next code:

protected void btnExportToExcel_Click(object sender, EventArgs e)
        {
            radGridAlerts.ExportSettings.Excel.Format = GridExcelExportFormat.Xlsx;
            radGridAlerts.ExportSettings.FileName = "Alerts Data";
            radGridAlerts.ExportSettings.IgnorePaging = true;
            radGridAlerts.MasterTableView.ExportToExcel();
        }

 

Do you know why happens?

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 09 Feb 2018, 09:29 AM
Hello,

If you have enabled AJAX for your grid, you can temporarily disable it:
https://www.telerik.com/support/kb/aspnet-ajax/ajaxmanager/details/get-more-descriptive-errors-by-disabling-ajax

Additional information you can find here:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/Exporting/export-from-ajaxified-grid

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
FRANCISCO
Top achievements
Rank 1
answered on 09 Feb 2018, 08:22 PM

Thanks for the reply.

I am not using AJAX.

0
Eyup
Telerik team
answered on 14 Feb 2018, 12:27 PM
Hello,

You can check the suggestions provided in this post to troubleshoot this problem:
https://www.telerik.com/forums/videos-won't-play-after-publishing#_VLoZ7MPJk6hG-pH02UH_A

If the issue remains, please open a formal support ticket and send us an isolated version of the project where we can reproduce the problematic behavior locally.

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