Hi,
I am exporting grid to excel, word and pdf. If the grid is not in update panel. It works fine. But if the grid is in update panel its not working. Any ideas? here is my code.
I am exporting grid to excel, word and pdf. If the grid is not in update panel. It works fine. But if the grid is in update panel its not working. Any ideas? here is my code.
<div style="padding: 1px"> |
<telerik:RadScriptManager ID="sm" runat="server"> |
</telerik:RadScriptManager> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="gvTrackers"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="gvTrackers" LoadingPanelID="RadAjaxLoadingPanel1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"> |
</telerik:RadAjaxLoadingPanel> |
<telerik:RadGrid ID="gvTrackers" Skin="Forest" EnableEmbeddedSkins="true" Height="600px" |
runat="server" AllowPaging="true" AllowSorting="True" GridLines="None" AutoGenerateColumns="true" |
EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" AllowMultiRowSelection="false" |
AllowFilteringByColumn="True" OnNeedDataSource="gvTrackers_NeedDataSource" OnItemCreated="gvTrackers_ItemCreated" |
OnItemCommand="gvTrackers_ItemCommand" OnColumnCreated="gvTrackers_ColumnCreated" OnPreRender="gvTrackers_PreRender"> |
<HeaderStyle Height="25px" Font-Size="8pt" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" |
BorderColor="Azure" BorderWidth="1px" /> |
<ExportSettings IgnorePaging="true" ExportOnlyData="true"> |
<Pdf AllowModify="false" AllowPrinting="true" PageWidth="16in" /> |
</ExportSettings> |
<MasterTableView AllowMultiColumnSorting="true" CommandItemDisplay="Top"> |
<CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" |
ShowExportToCsvButton="true" ShowExportToPdfButton="true" ShowAddNewRecordButton="false" /> |
</MasterTableView> |
<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True"> |
<Scrolling AllowScroll="true" EnableVirtualScrollPaging="false" UseStaticHeaders="true" /> |
<Selecting AllowRowSelect="True"></Selecting> |
<Resizing AllowRowResize="true" AllowColumnResize="True" EnableRealTimeResize="True" |
ResizeGridOnColumnResize="False"></Resizing> |
</ClientSettings> |
<PagerStyle Mode="NextPrevAndNumeric" HorizontalAlign="Right" Font-Bold="true" AlwaysVisible="true" /> |
</telerik:RadGrid> |
</div> |