I am refering the sample to export from grid to PDF at http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GeneralFeatures/PdfExport/DefaultCS.aspx
But its not working for me as desired. Below is my code, when I click on the PDF, data is not exported to pdf and the PDF button disappears.
<
telerik:RadGrid ID="gd" runat="server" AllowPaging="True" AllowSorting="True" GridLines="None"
Skin="Office2007" AutoGenerateColumns="False" OnItemDataBound="gd_ItemDataBound"
Height="100%" Width="100%" PageSize="5" AllowMultiRowSelection="true">
<ExportSettings IgnorePaging="false" OpenInNewWindow="true" ExportOnlyData="true">
<Pdf AllowAdd="false" AllowCopy="true" AllowModify="true" AllowPrinting="true" Author="Anonymous"
Keywords="None" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in"
PageTopMargin="1in" PageTitle="Status Result Export" Subject="Status Result Export"
Title="Status Result export" PaperSize="Letter" />
</ExportSettings>
<%
--<PagerStyle Mode="NextPrevAndNumeric" Position="Bottom" NextPageText="Next" PrevPageText="Prev" />--%>
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" VerticalAlign="Top" Wrap="True" Height="100%" Width="100%" />
<MasterTableView Height="100%">
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False" Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<PagerTemplate>
<div style="display:'block'">
<asp:ImageButton ID="ExportToPDF" Style="cursor: pointer;" ImageUrl="~/App_Themes/Pdf.png"
AlternateText="Export to PDF" CommandName="ExportToPdf" runat="server"></asp:ImageButton>
</div>
</PagerTemplate>
<Columns>
<
telerik:GridTemplateColumn HeaderText="Item #" ItemStyle-Width="10%" ItemStyle-VerticalAlign="Top">
<ItemTemplate>
<asp:Label ID="lblItemNbr" runat="server"></asp:Label>
<asp:TextBox ID="txtEnrtaskId" CssClass="HideLabel" runat="server" Width="0px" Height="0px"></asp:TextBox>
</ItemTemplate>
<ItemStyle VerticalAlign="Top" Width="10%"></ItemStyle>
</telerik:GridTemplateColumn>
</
Columns>
<EditFormSettings>
<PopUpSettings ScrollBars="None" />
</EditFormSettings>
</MasterTableView>
<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowKeyboardNavigation="true">
<ClientEvents OnRowContextMenu="gdRowContextMenu" />
<Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
<Scrolling AllowScroll="False" UseStaticHeaders="False" />
<Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True" EnableRealTimeResize="True">
</Resizing>
</ClientSettings>
</telerik:RadGrid>
Could you please advice if I am missing anything here ?