We are using Radgrid with paging. But at the time of export we need to export all records (6000 row and 56 columns). If we use normal export it takes lot of time to export to excel. One more case is that we do not want to use HTML format for excel as it shows warning while opening. Hence we decided to go for third party library NPOI. we are referring to
http://www.telerik.com/community/code-library/aspnet-ajax/grid/export-to-excel-with-third-party-library-npoi.aspx
One issue is that it is displaying two empty columns in the starting in the excel sheet. All columns are added runtime. I have checked and there is no extra column added.
http://www.telerik.com/community/code-library/aspnet-ajax/grid/export-to-excel-with-third-party-library-npoi.aspx
One issue is that it is displaying two empty columns in the starting in the excel sheet. All columns are added runtime. I have checked and there is no extra column added.
<telerik:RadGrid ID="grdDetailreport" runat="server" GridLines="None" AllowSorting="True" AllowPaging="True" PageSize="50" AllowCustomPaging="true" AllowFilteringByColumn="true" OnNeedDataSource="grdDetailreport_NeedDataSource" OnSortCommand="grdDetailreport_SortCommand" OnItemDataBound="grdDetailreport_ItemDataBound" Width="950px"> <ClientSettings AllowDragToGroup="false"> <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="5" SaveScrollPosition="true"> </Scrolling> </ClientSettings> <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="Bottom"></PagerStyle> <MasterTableView RetrieveAllDataFields="false" AutoGenerateColumns="false" EnableColumnsViewState="true" AllowCustomSorting="true" CommandItemDisplay="Top" TableLayout="Auto"> <CommandItemSettings ShowExportToExcelButton="false" ShowAddNewRecordButton="false" ShowRefreshButton="false" ExportToExcelText="Export to excel"></CommandItemSettings> <Columns> </Columns> </MasterTableView> <ExportSettings IgnorePaging="true"> <Excel Format="Biff" ></Excel> </ExportSettings></telerik:RadGrid>