I'm evaluating the latest download (bin35).
I have a UserControl that has a grid on it. The UserControl is placed in a RadPageView. I'm trying to get the ExportToPDF to work but nothing happens. I have coded this in my UserControl:
protected void btnPDF_Click(object sender, EventArgs e)
{
RadGrid1.ExportSettings.ExportOnlyData =
true;
RadGrid1.ExportSettings.IgnorePaging =
true;
RadGrid1.ExportSettings.OpenInNewWindow =
true;
RadGrid1.MasterTableView.ExportToPdf();
}
The code is executed but nothing happens - no errors - nothing. Any ideas what I might be missing.
Here is my Grid Definition - I ajaxify what I need manually - becuase of the user control.
<
telerik:RadGrid ID="RadGrid1" runat="server"
AllowPaging="True" AllowSorting="True"
GridLines="None" onneeddatasource="RadGrid_NeedDataSource"
ShowGroupPanel="True" HorizontalAlign="Center"
oncolumncreated="RadGrid1_ColumnCreated"
ongroupschanging="RadGrid1_GroupsChanging"
onitemdatabound="RadGrid1_ItemDataBound" Skin="Office2007"
SkinID="Office2007" PageSize="50" >
<ExportSettings OpenInNewWindow="True">
</ExportSettings>
<mastertableview cellpadding="10" gridlines="None" ShowGroupFooter="True"
GroupsDefaultExpanded="False"><rowindicatorcolumn visible="False"><HeaderStyle Width="90px" /></rowindicatorcolumn><expandcollapsecolumn visible="False"><HeaderStyle Width="90px" /></expandcollapsecolumn><editformsettings><formtablestyle /><popupsettings scrollbars="None" /></editformsettings><ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" Width="100px" Wrap="False" />
<GroupHeaderItemStyle Font-Bold="False" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
Width="100px" Wrap="False" HorizontalAlign="Left" /><HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" Wrap="False" /></mastertableview><GroupHeaderItemStyle Wrap="False" /><clientsettings AllowColumnsReorder="True" allowdragtogroup="True"><Scrolling AllowScroll="True" UseStaticHeaders="True" /><Resizing ClipCellContentOnResize="False" ResizeGridOnColumnResize="True" /></clientsettings><ActiveItemStyle Wrap="False" /></telerik:RadGrid>
Any help is appreciated!
Joni