8 Answers, 1 is accepted
I'm not sure what might cause such problem. Could you please provide some more information and instructions as to how to reproduce the issue? I would appreciate it, if you could attach a demo or a code sample.
Best regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function onRequestStart(sender, args) {
if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 ||
args.get_eventTarget().indexOf("ExportToWordButton") >= 0 ||
args.get_eventTarget().indexOf("ExportToPdfButton") >= 0 ||
args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) {
args.set_enableAjax(false);
}
}
</script>
</telerik:RadScriptBlock>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<%--Needed for JavaScript IntelliSense in VS2010--%>
<%--For VS2008 replace RadScriptManager with ScriptManager--%>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
</Scripts>
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<ClientEvents OnRequestStart="onRequestStart" />
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<updatedcontrols>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
</updatedcontrols>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
AllowSorting="True" DataSourceID="lds_vSubscribers" GridLines="None" ShowGroupPanel="True"
AutoGenerateColumns="False" PageSize="100">
<ClientSettings AllowDragToGroup="True">
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
<ExportSettings ExportOnlyData="true" FileName="ExportedRadGrid" OpenInNewWindow="True"
IgnorePaging="True" Pdf-FontType="Embed" />
<MasterTableView DataSourceID="lds_vSubscribers" CommandItemDisplay="Top">
<CommandItemSettings ShowExportToCsvButton="true" ShowExportToExcelButton="true"
ShowExportToPdfButton="true" ShowExportToWordButton="true" />
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="SubscriberId" DataType="System.Int32" HeaderText="Subscriber Id"
SortExpression="SubscriberId" UniqueName="SubscriberId">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<PagerStyle Position="TopAndBottom" />
<HeaderContextMenu EnableAutoScroll="True">
</HeaderContextMenu>
</telerik:RadGrid>
<asp:LinqDataSource ID="lds_vSubscribers" runat="server" ContextTypeName="DAL.JijiMobileNewsUSADataClassesDataContext"
EntityTypeName="" OrderBy="RegisteredDate desc" TableName="vSubscribers">
</asp:LinqDataSource>
I appreciate it if you could me how to solve the problem.
I created a sample project that looks exactly as yours. Please test it on your end and let me know whether it exhibits the same problem.
In the meantime I recommend you disable the scrolling/static headers functionality when exporting to PDF (as mentioned in the documentation)
PDF export help topic
Let me know what your findings are.
Best regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Thank you very much for your quick response. I tried your files, but the same results.
(I wanted to attach a zip file that contains the files I tried as well as the pdf file, but this forum doesn't let me do it...)
By the way, after I exported the same data as an Excel file, I get a warning message saying "The file you are trying to open is in a different format than specified by the file extension." when I try to open it. I just want to let you know if this is related to the pdf issue.
The warning message is not related to the PDF problem. You can find more information about it in the following blog posts:
MSDN blogs: Excel 2007 Extension Warning On Opening Excel Workbook from a Web Site
Grinn blog: "The file you are trying to open, '[filename]', is in a different format"
You can attach the desired files to a formal support ticket. Login into your Telerik account and click on Submit new support ticket link. Please provide a valid reference to this forum post (URL) - this way I will be able to track your ticket faster.
Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Thank you!
I reproduced the problem locally - thank you for your assistance. I will post an update in this thread as soon as I have more info about the problem.
Please excuse us for the inconvenience.
Best regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
This problem is already addressed in the latest release - RadControls for ASP.NET AJAX Q1 2010 SP1.
Release history - RadControls for ASP.NET AJAX Q1 2010 SP1
Best regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.