I am using VS 2008, sql 2005 on a vista machine.
I preload first radgrid from a datasource. By selecting a row in the first, I build a second radgrid with the rowdata from the first radgrid selected row(s) .
When I implement the
radgridinvoice.MasterTableView.ExportToPdf() I get the following error:
System.SystemException: At least one of minimum, optimum, or maximum IPD must be specified on table.
at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
at Telerik.Web.Apoc.Fo.Flow.Table.SetIPD(Boolean bHasProportionalUnits, Int32 maxAllocIPD)
at Telerik.Web.Apoc.Fo.Flow.Table.CalcFixedColumnWidths(Int32 maxAllocationWidth)
at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
etc...
If I comment out radgridinvoice.MasterTableView.ExportToPdf() noting happens.
Help. What do I need to do? here is the code from the first grid thru the second:
<radAjx:RadAjaxPanel ID="rap_createInv" runat="server" EnableAJAX="False">
<tr>
<asp:Button ID="btn_createstatement" runat="server" Text="Create Statement" CssClass="Breadcrumbs" Width="125" Visible="false" />
<td height="10">
<asp:ScriptManager ID="ScriptManager1" runat="server" ></asp:ScriptManager>
<telerik:RadGrid ID="rgv_orders" AutoGenerateColumns="false" HorizontalAlign="Left" ShowStatusBar="false"
AllowPaging="False" PageSize="10" Skin="" runat="server" Width="98%" gridlines="Both" CssClass="BodyText02" AlternatingItemStyle-BackColor="White" FooterStyle-BackColor="#1C5E55" Font-Bold="fALSE" >
<PagerStyle Mode="NumericPages"></PagerStyle>
<ClientSettings AllowExpandCollapse="True" >
</ClientSettings>
<MasterTableView DataKeyNames="OrderID" AllowMultiColumnSorting="true" Width="100%" >
<DetailTables>
<telerik:GridTableView DataKeyNames="OrderID" DataSourceID="SQLDataSource12" Width="100%" Gridlines="Both" >
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="OrderID" MasterKeyField="OrderID" />
</ParentTableRelation>
<Columns>
<telerik:GridBoundColumn UniqueName="OrderID" DataField="OrderID" HeaderText="Order #" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="True" SortExpression="" ItemStyle-Width="7%" AllowSorting="false" ></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="LineID" DataField="LineID" HeaderText="Line#" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="3%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Patientid" DataField="Patientid" HeaderText="Client ID" HeaderStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="1%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="PatientName" DataField="PatientName" HeaderText="Client Name" HeaderStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="1%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ProviderName" DataField="ProviderName" HeaderText="Provider Name" HeaderStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="1%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="lineDesc" DataField="LineDesc" HeaderText="Description of Charge" HeaderStyle-HorizontalAlign="Center" Visible="true" SortExpression="" ItemStyle-Width="53%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="OrigDate" DataField="OrigDate" HeaderText="Order Date" HeaderStyle-HorizontalAlign="Center" Visible="true" SortExpression="" ItemStyle-Width="10%" AllowSorting="false" ItemStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="PaidDate" DataField="PaidDate" HeaderText="Paid Date" HeaderStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="10%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Status" DataField="Status" HeaderText="Status" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="7%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="lineAmt" DataField="lineAmt" HeaderText="Amount" HeaderStyle-HorizontalAlign="Center" Visible="true" SortExpression="" AllowSorting="false" DataFormatString="{0:C2}" ItemStyle-HorizontalAlign="Right" ></telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="CheckBoxLineTemplateColumn" HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="false" >
<ItemTemplate>
<asp:Panel ID="Panel1" runat="server">
<asp:CheckBox id="CheckBoxSelectLine" OnCheckedChanged="ToggleRowLineSelection" AutoPostBack="true" runat="server" ></asp:CheckBox>
</asp:Panel>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<HeaderStyle CssClass="GridHeader" />
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridBoundColumn UniqueName="OrderID" DataField="OrderID" HeaderText="Order #" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="True" SortExpression="" ItemStyle-Width="8%" AllowSorting="false" ></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="UserID" DataField="UserID" HeaderText="User ID" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="2%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="PatientName" DataField="PatientName" HeaderText="Client Name" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" Visible="true" SortExpression="" ItemStyle-Width="15%" AllowSorting="True"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="providername" DataField="providername" HeaderText="Provider Name" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" Visible="True" SortExpression="" ItemStyle-Width="45%" ItemStyle-Wrap="true" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="PayDate" DataField="PayDate" HeaderText="Pay Date" HeaderStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="3%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="OrigDate" DataField="OrigDate" HeaderText="Order Date" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="true" SortExpression="" ItemStyle-Width="3%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="CompletionDate" DataField="CompletionDate" HeaderText="Completion Date" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="true" SortExpression="" ItemStyle-Width="12%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="paid" DataField="paid" HeaderText="Paid Date" HeaderStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="3%" AllowSorting="false" ></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="PaymentType" DataField="PaymentType" HeaderText="Payment Type" HeaderStyle-HorizontalAlign="Center" Visible="False" SortExpression="" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Status" DataField="Status" HeaderText="Status" HeaderStyle-HorizontalAlign="Center" Visible="true" SortExpression="" ItemStyle-Width="7%" AllowSorting="false" ItemStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ReqType" DataField="ReqType" HeaderText="Request Type" HeaderStyle-HorizontalAlign="Center" Visible="true" SortExpression="" ItemStyle-Width="7%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="InvDate" DataField="InvDate" HeaderText="Invoice Date" HeaderStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="7%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="InvNumber" DataField="InvNumber" HeaderText="Inv #" HeaderStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="10%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="CheckBoxLineTemplateColumn" HeaderText="Select" >
<ItemTemplate>
<asp:Panel ID="Panel2" runat="server">
<asp:CheckBox id="CheckBoxSelect" OnCheckedChanged="ToggleRowSelection" AutoPostBack="true" runat="server" ></asp:CheckBox>
</asp:Panel>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<HeaderStyle CssClass="GridHeader" />
</MasterTableView>
<ClientSettings>
<Selecting AllowRowSelect="true" />
</ClientSettings>
</telerik:RadGrid>
<asp:Label ID="lbl_createInv" runat="server" Text="Creating New Invoice" CssClass="HeadlineText02" ForeColor="Red" Visible="false"></asp:Label>
<asp:Button ID="btn_createstatement_1" runat="server" Text="Create Statement" CssClass="Breadcrumbs" Visible="false" />
</td>
</tr>
</radAjx:RadAjaxPanel>
</td>
</tr>
<radAjx:RadAjaxPanel ID="rap_payment" runat="server" EnableAJAX="False">
<td height="10">
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" onajaxsettingcreating="RadAjaxManager1_AjaxSettingCreating" ClientEvents-OnRequestStart="onRequestStart" >
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGridInvoice">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGridInvoice" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid ID="RadGridInvoice" AutoGenerateColumns="False" HorizontalAlign="Left" ShowStatusBar="false" BorderWidth="2" BorderColor="Red" Visible="true"
AllowPaging="false" PageSize="10" Skin="" runat="server" Width="98%" gridlines="Both" CssClass="BodyText02" AlternatingItemStyle-BackColor="White" FooterStyle-BackColor="#1C5E55" Font-Bold="fALSE" >
<FooterStyle BackColor="#1C5E55"></FooterStyle>
<AlternatingItemStyle BackColor="#F9F6EE"></AlternatingItemStyle>
<MasterTableView>
<Columns>
<telerik:GridBoundColumn UniqueName="ord_Line" DataField="ord_Line" HeaderText="Order #" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="True" SortExpression="" ItemStyle-Width="1%" AllowSorting="false" ></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="OrigDate" DataField="OrigDate" HeaderText="Order Date" HeaderStyle-HorizontalAlign="Center" Visible="true" SortExpression="" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ord_ClientName" DataField="ord_ClientName" HeaderText="Client Name" HeaderStyle-HorizontalAlign="Center" Visible="true" SortExpression="" ItemStyle-Width="15%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ord_providerName" DataField="ord_providerName" HeaderText="Provider Name" HeaderStyle-HorizontalAlign="Center" Visible="true" SortExpression="" ItemStyle-Width="25%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="LineID" DataField="LineID" HeaderText="Line Num" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="False" SortExpression="" ItemStyle-Width="1%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="lineDesc" DataField="LineDesc" HeaderText="Description of Charge" HeaderStyle-HorizontalAlign="Center" Visible="true" SortExpression="" ItemStyle-Width="30%" AllowSorting="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="lineAmt" DataField="lineAmt" HeaderText="Amount" HeaderStyle-HorizontalAlign="Center" Visible="true" SortExpression="" AllowSorting="false" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:C2}" ItemStyle-Width="15%" ></telerik:GridBoundColumn>
</Columns>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" CssClass="GridHeader" ></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="False">
<HeaderStyle Width="19px" CssClass="GridHeader"></HeaderStyle>
</ExpandCollapseColumn>
</MasterTableView>
<HeaderStyle BackColor="#FFCC00"></HeaderStyle>
</telerik:RadGrid>
</td>
</radAjx:RadAjaxPanel>
Thanks to everyone in advance for your assistance.
Terry