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

ExportType changing

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kathy
Top achievements
Rank 1
Kathy asked on 27 May 2014, 07:08 PM
I have a RadGrid with the below code:


<telerik:RadGrid ID="CDSRGridView" runat="server" PageSize="15" AllowPaging="True" AllowSorting="True"

                                        AutoGenerateColumns="False" Width="700px" Height="240px">

                                        <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu
GridContextMenu_Vista"></HeaderContextMenu>

                                        <FilterMenu EnableImageSprites="False">

                                        </FilterMenu>

                                        <MasterTableView CommandItemDisplay="Top" DataKeyNames="MyID" TableLayout="Fixed"

                                            HorizontalAlign="NotSet" AutoGenerateColumns="False" EditMode="InPlace" EditItemStyle-VerticalAlign="Top">

                                            <CommandItemSettings ShowExportToExcelButton="true" ShowRefreshButton="False"></CommandItemSettings>

                                            <Columns>

                                                …

                                            </Columns>

 

                                            <EditFormSettings>

                                               
<EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>

                                            </EditFormSettings>

 

                                            <EditItemStyle VerticalAlign="Top"></EditItemStyle>

                                        </MasterTableView>

                                        <ExportSettings ExportOnlyData="True" FileName="MyExcelFile" Excel-Format="Biff">

                                        </ExportSettings>

                                        <ClientSettings>

                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" />

                                            <Resizing AllowColumnResize="true" EnableRealTimeResize="true" />

                                        </ClientSettings>

                                    </telerik:RadGrid>


But, when I debug and click the Export button, the BiffExporting event does not fire.  So, I put a breakpoint in the GridExporting event, and it shows the ExportType = ExcelML.  Why would the grid change the ExportType when I have it explicitly set to Biff? 

1 Answer, 1 is accepted

Sort by
0
Kathy
Top achievements
Rank 1
answered on 27 May 2014, 09:32 PM
Please ignore this post.  There was a place in my code where it was resetting the ExportType, and I just found it.  D'oh!
Tags
Grid
Asked by
Kathy
Top achievements
Rank 1
Answers by
Kathy
Top achievements
Rank 1
Share this question
or