RadGrid ExportToExcel() results in multiple content types.

2 posts, 0 answers
  1. Christopher
    Christopher avatar
    2 posts
    Member since:
    Jul 2016

    Posted 11 Jul Link to this post

    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?
  2. Kostadin
    Kostadin avatar
    1689 posts

    Posted 14 Jul Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top