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

RadGrid ExportToExcel() results in multiple content types.

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 11 Jul 2016, 09:07 PM
I'm having an issue where the RadGrid ExportToExcel() method is generating output that includes a header item "<meta http-equiv="Content-Type" content="text/html; charset=utf-8">" in addition to the the header also showing a content-Type of "application/vnd.ms-excel (found via chrome dev tools or fiddler).  Our security scanning software is returning an error saying Multiple content types are specified.  Is there a way to get rid of the <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> content that is output in the response?

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 14 Jul 2016, 01:24 PM
Hello Christopher,

Could you please let me know which export format you are using? Also you can try setting enabling ExportOnlyData property in the ExportingSettings and check whether the issue remains.

Regards,
Kostadin
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Christopher
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or