I have a RadGrid with a DetailTable that throws an error on export to pdf in IE7 and earlier. Export works fine in IE8, Firefox, and Chrome, but throws the following error in IE7 and earlier:
System.SystemException: At least one of minimum, optimum, or maximum IPD must be specified on table.
Here is the source code for the RadGrid
And here is the C# code that runs when the export button is clicked:
Has anybody run across this error before in IE7? Why would this same code work in the other browsers by not IE7?
Thanks,
Brian
System.SystemException: At least one of minimum, optimum, or maximum IPD must be specified on table.
Here is the source code for the RadGrid
| <telerik:RadGrid ID="rgrdPayroll" runat="server" AutoGenerateColumns="False" DataSourceID="odsPersonnelByPI" |
| GridLines="None"> |
| <MasterTableView DataSourceID="odsPersonnelByPI" DataKeyNames="DisplayName" HierarchyLoadMode="ServerBind"> |
| <DetailTables> |
| <telerik:GridTableView runat="server" DataSourceID="odsPayrollByPI" GridLines="None"> |
| <ParentTableRelation> |
| <telerik:GridRelationFields DetailKeyField="DisplayName" MasterKeyField="DisplayName" /> |
| </ParentTableRelation> |
| <Columns> |
| <telerik:GridBoundColumn DataField="SlAcct6No" HeaderText="Account" UniqueName="SlAcct6No"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="AcctName" HeaderText="Account Name" UniqueName="AcctName"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Pay" DataType="System.Decimal" HeaderText="Pay" |
| ReadOnly="True" SortExpression="Pay" UniqueName="Pay" DataFormatString="{0:$#,#.#0;-$#,#.#0;$0.00}"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Benfit" DataType="System.Decimal" HeaderText="Benefit" |
| ReadOnly="True" SortExpression="Benfit" UniqueName="Benfit" DataFormatString="{0:$#,#.#0;-$#,#.#0;$0.00}"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Total" DataType="System.Decimal" HeaderText="Total" |
| ReadOnly="True" SortExpression="Total" UniqueName="Total" DataFormatString="{0:$#,#.#0;-$#,#.#0;$0.00}"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </telerik:GridTableView> |
| </DetailTables> |
| <ExpandCollapseColumn Visible="True"> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn DataField="DisplayName" HeaderText="Personnel" SortExpression="DisplayName" |
| UniqueName="DisplayName"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Total" DataType="System.Decimal" HeaderText="Total" |
| ReadOnly="True" SortExpression="Total" UniqueName="Total Salary" DataFormatString="{0:$#,#.#0;-$#,#.#0;$0.00}"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
And here is the C# code that runs when the export button is clicked:
| protected void btnPDFPersonnel_Click(object sender, EventArgs e) |
| { |
| rgrdPayroll.ExportSettings.FileName = ddlPIs.SelectedValue.Substring(0, ddlPIs.SelectedValue.IndexOf(',')) + "_Personnel"; |
| rgrdPayroll.ExportSettings.OpenInNewWindow = true; |
| rgrdPayroll.ExportSettings.ExportOnlyData = true; |
| rgrdPayroll.ExportSettings.IgnorePaging = false; |
| rgrdPayroll.ExportSettings.Pdf.PageWidth = Unit.Parse("297mm"); |
| rgrdPayroll.ExportSettings.Pdf.PageHeight = Unit.Parse("216mm"); |
| foreach (GridItem item in rgrdPayroll.MasterTableView.Items) |
| { |
| item.Expanded = true; |
| } |
| rgrdPayroll.MasterTableView.ExportToPdf(); |
| } |
Has anybody run across this error before in IE7? Why would this same code work in the other browsers by not IE7?
Thanks,
Brian