I have searched and tried different things for 2 days. I am exporting RadGrid to Excel. Has worked in the past and just quit working in production. Works on my local machine.
<telerik:RadGrid ID="grdCustom" AllowSorting="True" runat="server" GridLines="None" Width="100%"
OnExcelMLExportStylesCreated="grdCustom_ExcelMLExportStylesCreated"
OnExcelMLExportRowCreated="grdCustom_ExcelMLExportRowCreated" AutoGenerateColumns="true" Style="overflow: hidden">
<MasterTableView UseAllDataFields="true"></MasterTableView>
</telerik:RadGrid>
When the 'Export to Excel' button is clicked, the following is executed:
grdCustom.ExportSettings.ExportOnlyData = True
grdCustom.ExportSettings.OpenInNewWindow = True
grdCustom.MasterTableView.UseAllDataFields = True
grdCustom.MasterTableView.ExportToExcel()
Like I mentioned earlier, works on my local machine but not in production environment.