In my app I export a RadGrid in ExcelML format in order to set font styles, sheet name etc., but unfotunately not all columns are exported.
I must say that those columns that are not exported for some reason are similar (or even identical) to the columns
that are exported.
I've set the UseAllDataFields, ExportOnlyData to "true" but it still did not solve the problem.
In order to make sure that the export format is the real cause I changed it to Biff export format and all columns were exported properly.
I really don't know what I'm doing wrong and how can I fix it.
Hereby I attach the RadGrid with 2 columns - the 1st (Group_Order) is properly exported and the 2nd (Group_Demand) is not exported at all.
Thanks for your help, Kfir.
<
telerik:RadGrid ID="grdObsoleteFullForm" runat="server" AllowPaging="true" AllowCustomPaging="true" OnItemCommand="grdItemCommand" OnPageIndexChanged="PageIndexChanged" PageSize="100"
AutoGenerateColumns="false" OnNeedDataSource="NeedDataSource" GridLines="Both" OnItemCreated="grdObsoleteFullForm_ItemCreated" OnExcelMLExportStylesCreated="grdObsoleteFullForm_ExcelMLExportStylesCreated" OnExcelMLExportRowCreated="grdObsoleteFullForm_ExcelMLExportRowCreated" >
<ExportSettings FileName="ObsoleteReport" IgnorePaging="true" ExportOnlyData="true" Excel-Format="ExcelML" ></ExportSettings>
<ClientSettings AllowColumnHide="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true" >
</ClientSettings>
<MasterTableView GridLines="Both" UseAllDataFields="true" AllowFilteringByColumn="true" AutoGenerateColumns="false" AllowPaging="true" CommandItemDisplay="Top" Width="100%" TableLayout="Fixed">
<CommandItemSettings ShowExportToExcelButton="true" ShowRefreshButton="false" ShowAddNewRecordButton="false" />
<CommandItemTemplate> <asp:ImageButton ID="excelBtn" Text="export To Excel" OnClick="btnExcel_Click" runat="server" ToolTip="Export To Excel" ImageUrl="~/Images/excel2.jpg" />
<
Columns>
<telerik:GridBoundColumn HeaderText="Group Order" UniqueName="Group_Order" DataField="GroupOrder" HeaderStyle-BackColor="Snow"
HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Top" FilterControlWidth="50px" ItemStyle-HorizontalAlign="Center"
HeaderStyle-Font-Bold="true" HeaderStyle-Width="50px">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Group Demand" UniqueName="Group_Demand" DataField="ProjectDemand" HeaderStyle-BackColor="Snow"
HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Top" FilterControlWidth="40px" ItemStyle-HorizontalAlign="Center"
HeaderStyle-Font-Bold="true" HeaderStyle-Width="55px">
</telerik:GridBoundColumn>
</
MasterTableView>
<PagerStyle Mode="NextPrev" AlwaysVisible="true" ></PagerStyle>
</telerik:RadGrid>