<CSP:CSPGrid ID="ClientiGrid" runat="server" AutoGenerateColumns="False" AutoGenerateHierarchy="True"
GridLines="None" Skin="Web20" AllowAutomaticUpdates="True">
<ClientSettings ColumnsReorderMethod="Swap">
<DataBinding FilterParameterType="List" ResponseType="Json">
<DataService DataServiceType="AdoNet" />
</DataBinding>
</ClientSettings>
<MasterTableView AllowAutomaticUpdates="True" DataKeyNames="ClienteStudioId"
TableLayout="Fixed">
<columns>
<CSP:CSPGridBoundColumn DataField="ClienteStudioId"
HeaderText="ClienteStudioId" Resizable="false" UniqueName="ClienteStudioId"
Visible="false">
</CSP:CSPGridBoundColumn>
<CSP:CSPGridBoundColumn DataField="RagioneSociale" HeaderText="RagioneSociale"
Resizable="false" UniqueName="RagioneSociale" Visible="true">
</CSP:CSPGridBoundColumn>
<CSP:CSPGridBoundColumn DataField="CodFiscale" HeaderText="CodFiscale"
Resizable="false" UniqueName="CodFiscale" Visible="true">
</CSP:CSPGridBoundColumn>
<CSP:CSPGridBoundColumn DataField="PIva" HeaderText="PIva" Resizable="false"
UniqueName="PIva" Visible="true">
</CSP:CSPGridBoundColumn>
<CSP:CSPGridBoundColumn DataField="Fax" HeaderText="Fax" Resizable="false"
UniqueName="Fax" Visible="true">
</CSP:CSPGridBoundColumn>
</columns>
<CommandItemSettings ExportToPdfText="Export to Pdf" />
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column">
</EditColumn>
</EditFormSettings>
<ExpandCollapseColumn AndCurrentFilterFunction="NoFilter"
CurrentFilterFunction="NoFilter" DataSecurity="Read" FilterDelay=""
FilterListOptions="VaryByDataType">
</ExpandCollapseColumn>
<RowIndicatorColumn AndCurrentFilterFunction="NoFilter"
CurrentFilterFunction="NoFilter" DataSecurity="Read" FilterDelay=""
FilterListOptions="VaryByDataType">
</RowIndicatorColumn>
</MasterTableView>
<PagerStyle CssClass="rgPager" Mode="NextPrevAndNumeric" Wrap="True" />
</CSP:CSPGrid>
But in RadGrid the above code are not adding.So Please help me in this regards.
Thanks & Regards,
Anita Sahu
<telerik:RadAjaxLoadingPanel ID="itemsLoadingPanel" runat="server" Skin="Vista" Transparency="30"></telerik:RadAjaxLoadingPanel> <telerik:RadAjaxPanel ID="itemsPanel" runat="server" LoadingPanelID="itemsLoadingPanel"> <div> <telerik:RadTextBox ID="itemSearchPSTxt" runat="server" EmptyMessage="PS #" /> <telerik:RadTextBox ID="itemSearchDescriptionTxt" runat="server" EmptyMessage="Description" /> <telerik:RadTextBox ID="itemSearchPartNumTxt" runat="server" EmptyMessage="Part #" /> <telerik:RadButton ID="itemSearchBtn" runat="server" Text="Search" OnClick="itemSearchBtn_Click"/> <asp:Label ID="itemSearchErrorlbl" runat="server" Text="*You must input a search value" CssClass="error" Visible="false" /> </div> <telerik:RadGrid ID="itemsRadGrid" runat="server" AutoGenerateColumns="true" AutoGenerateEditColumn="true" AllowPaging="true" OnItemCommand="itemsRadGrid_ItemCommand"> <MasterTableView CommandItemDisplay="Top" NoMasterRecordsText="No Records" EditMode="PopUp"> <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" /> <EditFormSettings EditFormType="Template" PopUpSettings-Modal="true" PopUpSettings-Width="720px" CaptionFormatString="Edit Item"> <FormTemplate> <table> <tr> <td>Description:</td> <td>Part Number:</td> <td>Category:</td> </tr> <tr> <td><telerik:RadTextBox ID="editItemDescription" runat="server" /></td> <td><telerik:RadTextBox ID="editItemPartNum" runat="server" /></td> <td><telerik:RadTextBox ID="editItemCategory" runat="server" /></td> </tr> <tr> <td>Internal Account Number:</td> <td>Status:</td> <td></td> </tr> <tr> <td><telerik:RadTextBox ID="editItemAcctNum" runat="server" /></td> <td><telerik:RadTextBox ID="editItemStatus" runat="server" Text /></td> <td></td> </tr> <tr> <td>Expires: <asp:DropDownList ID="editItemExpires" runat="server"><asp:ListItem Text="Yes" Value="1" /><asp:ListItem Text="No" Value="0" /></asp:DropDownList></td> <td>Serial Numbered: <asp:DropDownList ID="editItemSerialNum" runat="server"><asp:ListItem Text="Yes" Value="1" /><asp:ListItem Text="No" Value="0" /></asp:DropDownList></td> <td>Lot Numbered: <asp:DropDownList ID="editItemLotNum" runat="server"><asp:ListItem Text="Yes" Value="1" /><asp:ListItem Text="No" Value="0" /></asp:DropDownList></td> <td>Consigned: <asp:DropDownList ID="editItemConsigned" runat="server"><asp:ListItem Text="Yes" Value="1" /><asp:ListItem Text="No" Value="0" /></asp:DropDownList></td> </tr> <tr> <td>OEM:</td> <td>OEM ID:</td> <td>OEM Item ID:</td> </tr> <tr> <td><telerik:RadTextBox ID="editItemOEM" runat="server" /></td> <td><telerik:RadTextBox ID="editItemOEMID" runat="server" /></td> <td><telerik:RadTextBox ID="editItemOEMItemID" runat="server" /></td> </tr> <tr> <td>Vendor:</td> <td>Vendor ID:</td> <td>Vendor Item ID:</td> </tr> <tr> <td><telerik:RadTextBox ID="editItemVendor" runat="server" /></td> <td><telerik:RadTextBox ID="editItemVendorID" runat="server" /></td> <td><telerik:RadTextBox ID="editItemVendorItemID" runat="server" /></td> </tr> <tr> <td>Vendor Price:</td> <td>Price Each:</td> <td>Cost Code:</td> <td>Conversion Rate:</td> <td>Unit of Measure:</td> </tr> <tr> <td><telerik:RadTextBox ID="editItemVendorPrice" runat="server" /></td> <td><telerik:RadTextBox ID="editItemPriceEach" runat="server" /></td> <td><telerik:RadTextBox ID="editItemCostCode" runat="server" /></td> <td><telerik:RadTextBox ID="editItemCoversionRate" runat="server" /></td> <td><telerik:RadTextBox ID="editItemUnitMeasure" runat="server" /></td> </tr> <tr> <td colspan="4"><telerik:RadButton ID="editItemUpdateBtn" runat="server" Text="Update" /></td> </tr> </table> </FormTemplate> </EditFormSettings> </MasterTableView> </telerik:RadGrid> </telerik:RadAjaxPanel>protected void itemSearchBtn_Click (object sender, EventArgs e) { itemSearchErrorlbl.Visible = false; string PartNum = itemSearchPartNumTxt.Text; string Description = itemSearchDescriptionTxt.Text; string PSNum = itemSearchPSTxt.Text; string whereStatement = ""; if (PartNum != "" || Description != "" || PSNum != "") { if (PartNum != "") { whereStatement = "items.PartNumber = " + "'" + PartNum + "'"; } if (Description != "") { // See if there is already a statement to see if we need to add AND if (whereStatement == "") { whereStatement = "items.Description like " + "'%" + Description + "%'"; } else { whereStatement = whereStatement + " AND items.Description like " + "'%" + Description + "%'"; } } if (PSNum != "") { if (whereStatement == "") { whereStatement = "items.CrossRefID = " + "'" + PSNum + "'"; } else { whereStatement = whereStatement + " AND items.CrossRefID = " + "'" + PSNum + "'"; } } itemsRadGrid.DataSource = GetDataTable("SELECT ItemParValues.ID, Min, Max, Locations.Name, ItemID FROM ItemParValues INNER JOIN items on ItemParValues.ItemID = items.ID INNER JOIN Locations on Locations.ID = ItemParValues.LocationID WHERE " + whereStatement); itemsRadGrid.DataBind(); } else // Display error itemSearchErrorlbl.Visible = true; } protected void itemsRadGrid_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == RadGrid.EditCommandName) { } } public DataTable GetDataTable(string queryString) { using (SqlCommand cmd = new SqlCommand(queryString, connection)) { SqlDataAdapter da = new SqlDataAdapter(cmd); DataTable dt = new DataTable(); da.Fill(dt); return dt; } }
<telerik:RadGrid ID="RadGrid1" runat="server"
AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
DataSourceID="GetProvider" GridLines="None" Skin="Windows7" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True">
<MasterTableView AutoGenerateColumns="False" DataSourceID="GetProvider" CommandItemDisplay="Top" DataKeyNames="SuspendedProviderId" >
<Columns>
<telerik:GridBoundColumn DataField="SocialSecurityAct" HeaderText="SocialSecurityAct"
SortExpression="SocialSecurityAct" UniqueName="SocialSecurityAct">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="42CFR" HeaderText="42CFR" SortExpression="42CFR"
UniqueName="42CFR">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="42USC" HeaderText="42USC" SortExpression="42USC"
UniqueName="42USC">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description"
UniqueName="Description">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="SuspendedProviderId" DataType="System.Int32" Visible="false"
HeaderText="SuspendedProviderId" ReadOnly="True" SortExpression="SuspendedProviderId"
UniqueName="SuspendedProviderId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="Id" Visible="false"
SortExpression="Id" UniqueName="Id">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="SuspendedProviderId" DataType="System.Int32" Visible="false"
HeaderText="SuspendedProviderId" SortExpression="SuspendedProviderId" UniqueName="SuspendedProviderId">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings EditFormType="Template">
<FormTemplate>
<table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none"
style="border-collapse: collapse; background: white;">
<tr class="EditFormHeader">
<td colspan="2" style="font-size: small">
<b>SocialSecurityAct</b>
</td>
</tr>
<tr class="EditFormHeader">
<td colspan="2" style="font-size: small">
<b>42 CFR</b>
</td>
<td>
<asp:TextBox runat="server" ID="txt42CFR" Text='<%# Bind("42CFR") %>' Enabled="false"/>
</td>
</tr>
<tr class="EditFormHeader">
<td colspan="2" style="font-size: small">
<b>42 USC</b>
</td>
<td>
<asp:TextBox runat="server" ID="txt42USC" Text='<%# Bind("42USC") %>' Enabled="false" />
</td>
</tr>
<tr class="EditFormHeader">
<td colspan="2" style="font-size: small">
<b>Description</b>
</td>
<td>
<asp:TextBox runat="server" ID="txtDescription" Text='<%# Bind("Description") %>' Enabled="false"/>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<asp:ImageButton ID="btnUpdate" ImageUrl="~/Img/Update.gif" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
</asp:ImageButton>
<asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Img/Cancel.gif" CausesValidation="False"
CommandName="Cancel"></asp:ImageButton>
</td>
</tr>
</table>
</FormTemplate>
</EditFormSettings>
<CommandItemSettings AddNewRecordText="Add " />
</MasterTableView>
</telerik:RadGrid>
</fieldset>
<asp:SqlDataSource ID="GetProvider" runat="server"
InsertCommand="spInsert" UpdateCommand="spUpdate"
DeleteCommand="spDelete" DeleteCommandType="StoredProcedure"
InsertCommandType="StoredProcedure" UpdateCommandType="StoredProcedure"
onupdating="GetProvider_Updating"
oninserting="GetProvider_Inserting">
<SelectParameters>
<asp:QueryStringParameter Name="SuspendedProviderId" QueryStringField="SuspendedProviderId"
Type="Int32" />
</SelectParameters>
<InsertParameters>
<asp:QueryStringParameter Name="SuspendedProviderId" QueryStringField="SuspendedProviderId" Type="Int32" />
<asp:Parameter Name="Id" Type="Int32" DefaultValue="1" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="Id" Type="Int32" DefaultValue="1" />
<asp:Parameter Name="SuspendedProviderId" Type="Int32" />
</UpdateParameters>
<DeleteParameters>
<asp:Parameter Name="SuspendedProviderId" />
</DeleteParameters>
</asp:SqlDataSource>
During the insert it passes all the column value , but i just want to pass the insert paramenter value. That means
Just pass these values.
<InsertParameters>
<asp:QueryStringParameter Name="SuspendedProviderId" QueryStringField="SuspendedProviderId" Type="Int32" />
<asp:Parameter Name="Id" Type="Int32" DefaultValue="1" />
</InsertParameters>
Help needed ASAP
Thanks
Eva
I have a panelbar that have links. If I click on one link the page open, but I can’t right click and open the page in a new tab (IE tab).
I have no choice to open in new tab.
How should I do if I want that?
My panelbar is bind to xml.
<asp:ObjectDataSource ID="LineItemGroupObjectDataSource" runat="server" EnablePaging="True" OldValuesParameterFormatString="original_{0}" OnSelected="LineItemGroupObjectDataSource_Selected" OnSelecting="LineItemGroupObjectDataSource_Selecting" SelectCountMethod="GetLineItemGroupCount" SelectMethod="GetLineItemGroups" SortParameterName="sortExpression" TypeName="Telarix.IxTools.IxAudit.Web.ObjectDataSources"> <SelectParameters> <asp:Parameter Name="filterExpression" Type="String" ConvertEmptyStringToNull="true" /> </SelectParameters> </asp:ObjectDataSource> <asp:ObjectDataSource ID="UnmappedIncomingLineItemObjectDataSource" runat="server" EnablePaging="True" OldValuesParameterFormatString="original_{0}" SelectCountMethod="GetUnmappedIncomingLineItemCount" SelectMethod="GetUnmappedIncomingLineItems" SortParameterName="sortExpression" TypeName="Telarix.IxTools.IxAudit.Web.ObjectDataSources" OnSelected="UnmappedIncomingLineItemObjectDataSource_Selected" OnSelecting="UnmappedIncomingLineItemObjectDataSource_Selecting"> <SelectParameters> <asp:Parameter Name="filterExpression" Type="String" ConvertEmptyStringToNull="true" /> </SelectParameters> </asp:ObjectDataSource> <asp:ObjectDataSource ID="UnmappedExpectedLineItemObjectDataSource" runat="server" EnablePaging="True" OldValuesParameterFormatString="original_{0}" SelectCountMethod="GetUnmappedExpectedLineItemCount" SelectMethod="GetUnmappedExpectedLineItems" SortParameterName="sortExpression" TypeName="Telarix.IxTools.IxAudit.Web.ObjectDataSources" OnSelected="UnmappedExpectedLineItemObjectDataSource_Selected" OnSelecting="UnmappedExpectedLineItemObjectDataSource_Selecting"> <SelectParameters> <asp:Parameter Name="filterExpression" Type="String" ConvertEmptyStringToNull="true" /> </SelectParameters> </asp:ObjectDataSource> <div id="container"> <asp:Panel ID="MainPanel" runat="server"> <div id="PageButtons" style="float: right; padding: 10px"> <asp:LinkButton ID="btnSaveContinue" runat="server" CssClass="button" OnClick="SaveContinue_Click" Style="margin: 0px 2px 0px 0px"><span>Save & Continue</span></asp:LinkButton> <asp:LinkButton ID="btnSaveClose" runat="server" CssClass="button" OnClick="SaveClose_Click" Style="margin: 0px 2px 0px 2px"><span>Save & Close</span></asp:LinkButton> <asp:LinkButton ID="btnExportExcel" runat="server" CssClass="button" CausesValidation="false" OnClick="ExportExcel_Click" Style="margin: 0px 2px 0px 2px"><span>Export to Excel</span></asp:LinkButton> <asp:LinkButton ID="btnCancel" runat="server" CssClass="button" OnClick="Cancel_Click" Style="margin: 0px 2px 0px 2px"><span>Close</span></asp:LinkButton> <asp:LinkButton ID="btnUndo" runat="server" CssClass="button" OnClick="Undo_Click" Style="margin: 0px 0px 0px 2px"><span>Undo</span></asp:LinkButton> </div> <div class="clear"> </div> <div id="MappedItemsSection" style="padding: 10px"> <table class="dash" cellpadding="0" cellspacing="0"> <tr> <td> <img src="Common/images/chartHeaderLeft.gif" alt="" /> </td> <td class="title"> Line Item Groups </td> <td> <img src="Common/images/chartHeaderRight.gif" alt="" /> </td> </tr> </table> <asp:Panel ID="MappedItemsGridPanel" runat="server" CssClass="boxLayer" Style="margin-bottom: 20px;"> <table> <tr> <td align="left"> <telerik:RadGrid ID="LineItemGroupRadGrid" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" OnItemCommand="LineItemGroupRadGrid_ItemCommand" DataSourceID="LineItemGroupObjectDataSource" PageSize="5" AutoGenerateColumns="False" GroupingEnabled="False" OnPreRender="LineItemGroupRadGrid_PreRender" OnDeleteCommand="LineItemGroupRadGrid_DeleteCommand" EnableHeaderContextMenu="True" OnDetailTableDataBind="LineItemGroupRadGrid_DetailTableDataBind" GridLines="None"> <ValidationSettings EnableValidation="False" /> <MasterTableView AllowMultiColumnSorting="True" DataKeyNames="lineItemGroupIndex,lineItemGroupId" HierarchyLoadMode="ServerBind" DataSourceID="LineItemGroupObjectDataSource" GridLines="Both" Name="LineItemGroups" NoDetailRecordsText="No mapped line items for this group" NoMasterRecordsText="No line items have been mapped."> <SortExpressions> <telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" /> </SortExpressions> <DetailTables> <telerik:GridTableView runat="server" AllowMultiColumnSorting="True" AllowFilteringByColumn="False" DataKeyNames="lineItemGroupIndex,lineItemGroupId" Frame="LHS" GridLines="Both" HorizontalAlign="Left" Name="MappedExpectedLineItems" NoDetailRecordsText="No Mapped Internal Line Items" NoMasterRecordsText="No Mapped Internal Line Items" Width="49%"> <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="lineItemGroupId" MasterKeyField="lineItemGroupId" /> </ParentTableRelation> <SortExpressions> <telerik:GridSortExpression FieldName="Product" SortOrder="Ascending" /> <telerik:GridSortExpression FieldName="TimeBand" SortOrder="Ascending" /> <telerik:GridSortExpression FieldName="Tier" SortOrder="Ascending" /> </SortExpressions> <Columns> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="lineItemGroupIndex" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="lineItemGroupIndex" HeaderText="Line Item Group Index" ReadOnly="True" SortExpression="lineItemGroupIndex" UniqueName="lineItemGroupIndex" Visible="False"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="lineItemGroupId" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="lineItemGroupId" HeaderText="line Item Group Id" ReadOnly="True" SortExpression="lineItemGroupId" UniqueName="lineItemGroupId" Visible="False"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="LineItemIndex" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="LineItemIndex" HeaderText="Line Item Index" ReadOnly="True" SortExpression="LineItemIndex" UniqueName="LineItemIndex" Visible="False"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="LineItemId" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="LineItemId" HeaderText="Line Item Id" ReadOnly="True" SortExpression="LineItemId" UniqueName="LineItemId" Visible="False"> </telerik:GridNumericColumn> <telerik:GridBoundColumn Aggregate="Count" AutoPostBackOnFilter="True" CurrentFilterFunction="StartsWith" DataField="Product" GroupByExpression="Product" HeaderText="(Internal) Product" ReadOnly="True" SortExpression="Product" UniqueName="Product"> <HeaderStyle Width="20%" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn Aggregate="Count" DataField="TimeBand" GroupByExpression="TimeBand" HeaderText="Time Band" ReadOnly="True" SortExpression="TimeBand" UniqueName="TimeBand"> </telerik:GridBoundColumn> <telerik:GridBoundColumn Aggregate="Count" DataField="Tier" GroupByExpression="Tier" HeaderText="Tier" ReadOnly="True" SortExpression="Tier" UniqueName="Tier"> </telerik:GridBoundColumn> <telerik:GridDateTimeColumn Aggregate="Min" DataField="BeginDate" DataFormatString="{0:d}" DataType="System.DateTime" GroupByExpression="BeginDate" HeaderText="Begin Date" ReadOnly="True" SortExpression="BeginDate" UniqueName="BeginDate"> </telerik:GridDateTimeColumn> <telerik:GridDateTimeColumn Aggregate="Max" DataField="EndDate" DataFormatString="{0:d}" DataType="System.DateTime" GroupByExpression="EndDate" HeaderText="End Date" ReadOnly="True" SortExpression="EndDate" UniqueName="EndDate"> </telerik:GridDateTimeColumn> <telerik:GridNumericColumn Aggregate="Sum" DataField="Calls" DataType="System.Int32" GroupByExpression="Calls" HeaderText="Calls" ReadOnly="True" SortExpression="Calls" UniqueName="Calls"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" DataField="Units" DataFormatString="{0:N2}" DataType="System.Decimal" GroupByExpression="Units" HeaderText="Units" ReadOnly="True" SortExpression="Units" UniqueName="Units"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Avg" DataField="Rate" DataFormatString="{0:N6}" DataType="System.Decimal" GroupByExpression="Rate" HeaderText="Rate" ReadOnly="True" SortExpression="Rate" UniqueName="Rate"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" DataField="Amount" DataFormatString="{0:N2}" DataType="System.Decimal" GroupByExpression="Amount" HeaderText="Amount" ReadOnly="True" SortExpression="Amount" UniqueName="Amount"> </telerik:GridNumericColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="This action will remove the selected mapped line item from the group" ConfirmTitle="Remove Mapped Line Item" ImageUrl="~/Common/images/deleterow.gif" UniqueName="RemoveButton"> <HeaderStyle Width="30px" /> </telerik:GridButtonColumn> </Columns> <PagerStyle Mode="NextPrev" /> </telerik:GridTableView> <telerik:GridTableView runat="server" AllowMultiColumnSorting="True" AllowFilteringByColumn="False" DataKeyNames="lineItemGroupIndex,lineItemGroupId" Frame="RHS" HorizontalAlign="Right" Name="MappedIncomingLineItems" NoDetailRecordsText="No Mapped Received Line Items" NoMasterRecordsText="No Mapped Received Line Items" Width="49%"> <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="lineItemGroupId" MasterKeyField="lineItemGroupId" /> </ParentTableRelation> <SortExpressions> <telerik:GridSortExpression FieldName="Product" SortOrder="Ascending" /> <telerik:GridSortExpression FieldName="TimeBand" SortOrder="Ascending" /> <telerik:GridSortExpression FieldName="Tier" SortOrder="Ascending" /> </SortExpressions> <Columns> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="lineItemGroupIndex" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="lineItemGroupIndex" HeaderText="Line Item Group Index" ReadOnly="True" SortExpression="lineItemGroupIndex" UniqueName="lineItemGroupIndex" Visible="False"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="lineItemGroupId" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="lineItemGroupId" HeaderText="line Item Group Id" ReadOnly="True" SortExpression="lineItemGroupId" UniqueName="lineItemGroupId" Visible="False"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="LineItemIndex" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="LineItemIndex" HeaderText="Line Item Index" ReadOnly="True" SortExpression="LineItemIndex" UniqueName="LineItemIndex" Visible="False"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="LineItemId" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="LineItemId" HeaderText="Line Item Id" ReadOnly="True" SortExpression="LineItemId" UniqueName="LineItemId" Visible="False"> </telerik:GridNumericColumn> <telerik:GridBoundColumn Aggregate="Count" AutoPostBackOnFilter="True" CurrentFilterFunction="StartsWith" DataField="Product" GroupByExpression="Product" HeaderText="(Received) Product" ReadOnly="True" SortExpression="Product" UniqueName="Product"> <HeaderStyle Width="20%" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn Aggregate="Count" DataField="TimeBand" GroupByExpression="TimeBand" HeaderText="Time Band" ReadOnly="True" SortExpression="TimeBand" UniqueName="TimeBand"> </telerik:GridBoundColumn> <telerik:GridBoundColumn Aggregate="Count" DataField="Tier" GroupByExpression="Tier" HeaderText="Tier" ReadOnly="True" SortExpression="Tier" UniqueName="Tier"> </telerik:GridBoundColumn> <telerik:GridDateTimeColumn Aggregate="Min" DataField="BeginDate" DataFormatString="{0:d}" DataType="System.DateTime" GroupByExpression="BeginDate" HeaderText="Begin Date" ReadOnly="True" SortExpression="BeginDate" UniqueName="BeginDate"> </telerik:GridDateTimeColumn> <telerik:GridDateTimeColumn Aggregate="Max" DataField="EndDate" DataFormatString="{0:d}" DataType="System.DateTime" GroupByExpression="EndDate" HeaderText="End Date" ReadOnly="True" SortExpression="EndDate" UniqueName="EndDate"> </telerik:GridDateTimeColumn> <telerik:GridNumericColumn Aggregate="Sum" DataField="Calls" DataType="System.Int32" GroupByExpression="Calls" HeaderText="Calls" ReadOnly="True" SortExpression="Calls" UniqueName="Calls"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" DataField="Units" DataFormatString="{0:N2}" DataType="System.Decimal" GroupByExpression="Units" HeaderText="Units" ReadOnly="True" SortExpression="Units" UniqueName="Units"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Avg" DataField="Rate" DataFormatString="{0:N6}" DataType="System.Decimal" GroupByExpression="Rate" HeaderText="Rate" ReadOnly="True" SortExpression="Rate" UniqueName="Rate"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" DataField="Amount" DataFormatString="{0:N2}" DataType="System.Decimal" GroupByExpression="Amount" HeaderText="Amount" ReadOnly="True" SortExpression="Amount" UniqueName="Amount"> </telerik:GridNumericColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="This action will remove the selected mapped line item from the group" ConfirmTitle="Remove Mapped Line Item" ImageUrl="~/Common/images/deleterow.gif" UniqueName="RemoveButton"> <HeaderStyle Width="30px" /> </telerik:GridButtonColumn> </Columns> <PagerStyle Mode="NextPrev" /> </telerik:GridTableView> </DetailTables> <ExpandCollapseColumn Visible="True"> </ExpandCollapseColumn> <Columns> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="lineItemGroupIndex" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="lineItemGroupIndex" HeaderText="Line Item Group Index" ReadOnly="True" SortExpression="lineItemGroupIndex" UniqueName="lineItemGroupIndex" Visible="False"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="lineItemGroupId" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="lineItemGroupId" HeaderText="Line Item Group Id" ReadOnly="True" SortExpression="lineItemGroupId" UniqueName="lineItemGroupId" Visible="False"> </telerik:GridNumericColumn> <telerik:GridBoundColumn Aggregate="Count" AutoPostBackOnFilter="True" CurrentFilterFunction="StartsWith" DataField="Name" GroupByExpression="Name" HeaderText="Name" ReadOnly="True" SortExpression="Name" UniqueName="Name" FilterControlWidth="90%"> <HeaderStyle Width="20%" /> </telerik:GridBoundColumn> <telerik:GridDateTimeColumn Aggregate="Min" DataField="BeginDate" AllowFiltering="false" DataFormatString="{0:d}" DataType="System.DateTime" GroupByExpression="BeginDate" HeaderText="Begin Date" ReadOnly="True" SortExpression="BeginDate" UniqueName="BeginDate" FilterControlWidth="75%"> </telerik:GridDateTimeColumn> <telerik:GridDateTimeColumn Aggregate="Max" DataField="EndDate" AllowFiltering="false" DataFormatString="{0:d}" DataType="System.DateTime" GroupByExpression="EndDate" HeaderText="End Date" ReadOnly="True" SortExpression="EndDate" UniqueName="EndDate" FilterControlWidth="75%"> </telerik:GridDateTimeColumn> <telerik:GridNumericColumn Aggregate="Sum" DataField="TotalExpectedCalls" AllowFiltering="false" DataType="System.Int32" Groupable="False" GroupByExpression="TotalExpectedCalls" HeaderText="Internal Calls" ReadOnly="True" SortExpression="TotalExpectedCalls" UniqueName="TotalExpectedCalls"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" AllowRounding="True" AllowFiltering="false" DataField="TotalExpectedUnits" DataFormatString="{0:N2}" DataType="System.Decimal" Groupable="False" GroupByExpression="TotalExpectedUnits" HeaderText="Internal Units" ReadOnly="True" SortExpression="TotalExpectedUnits" UniqueName="TotalExpectedUnits"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Avg" AllowRounding="True" AllowFiltering="false" DataField="ExpectedRate" DataFormatString="{0:N6}" DataType="System.Decimal" Groupable="False" GroupByExpression="ExpectedRate" HeaderText="Internal Rate" ReadOnly="True" SortExpression="ExpectedRate" UniqueName="ExpectedRate"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" AllowRounding="True" AllowFiltering="false" DataField="TotalExpectedAmount" DataFormatString="{0:N2}" DataType="System.Decimal" GroupByExpression="TotalExpectedAmount" HeaderText="Internal Amount" ReadOnly="True" SortExpression="TotalExpectedAmount" UniqueName="TotalExpectedAmount"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" DataField="TotalIncomingCalls" AllowFiltering="false" DataType="System.Int32" Groupable="False" GroupByExpression="TotalIncomingCalls" HeaderText="Received Calls" ReadOnly="True" SortExpression="TotalIncomingCalls" UniqueName="TotalIncomingCalls"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" AllowRounding="True" AllowFiltering="false" DataField="TotalIncomingUnits" DataFormatString="{0:N2}" DataType="System.Decimal" Groupable="False" GroupByExpression="TotalIncomingUnits" HeaderText="Received Units" ReadOnly="True" SortExpression="TotalIncomingUnits" UniqueName="TotalIncomingUnits"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Avg" AllowRounding="True" AllowFiltering="false" DataField="IncomingRate" DataFormatString="{0:N6}" DataType="System.Decimal" Groupable="False" GroupByExpression="IncomingRate" HeaderText="Received Rate" ReadOnly="True" SortExpression="IncomingRate" UniqueName="IncomingRate"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" AllowRounding="True" AllowFiltering="false" DataField="TotalIncomingAmount" DataFormatString="{0:N2}" DataType="System.Decimal" GroupByExpression="TotalIncomingAmount" HeaderText="Received Amount" ReadOnly="True" SortExpression="TotalIncomingAmount" UniqueName="TotalIncomingAmount"> </telerik:GridNumericColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="This action will delete the Line-Item Group and move the underlying line-items to the unmapped section" ConfirmTitle="Confirm Mapping Delete" HeaderButtonType="None" ImageUrl="~/Common/images/deleterow.gif" Reorderable="False" Resizable="False" ShowSortIcon="False" UniqueName="DeleteColumn"> <HeaderStyle Width="30px" /> </telerik:GridButtonColumn> </Columns> <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="Top" /> </MasterTableView> <GroupingSettings CaseSensitive="False" /> <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" AllowKeyboardNavigation="True" AllowRowHide="True" ReorderColumnsOnClient="True" AllowRowsDragDrop="True" EnableRowHoverStyle="True"> <Selecting AllowRowSelect="True" EnableDragToSelectRows="False" /> <Resizing AllowColumnResize="True" EnableRealTimeResize="True" /> </ClientSettings> </telerik:RadGrid> </td> </tr> </table> </asp:Panel> </div> <div class="clear"> </div> <div style="text-align: center"> <div> <asp:Label ID="DragDropNewLabel" runat="server" Text="Drag to image for new grouping"></asp:Label> </div> <div> <img id="DragDropNewGroup" src="Common/images/dropInsert.gif" alt="New Line Item Group" runat="server" /> </div> </div> <div id="UnmappedItemsSection"> <div id="ExpectedLineItems" style="float: left; width: 48%; padding: 10px"> <table class="dash" cellpadding="0" cellspacing="0"> <tr> <td> <img src="Common/images/chartHeaderLeft.gif" alt="" /> </td> <td class="title"> Unmapped Internal Line Items </td> <td> <img src="Common/images/chartHeaderRight.gif" alt="" /> </td> </tr> </table> <asp:Panel ID="ExpectedLineItemPanel" CssClass="boxLayer" Style="margin-bottom: 20px" runat="server"> <table style="width: 100%"> <tr align="left"> <td> <telerik:RadGrid ID="UnmappedExpectedLineItemRadGrid" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" EnableViewState="False" OnItemCommand="UnmappedExpectedLineItemRadGrid_ItemCommand" DataSourceID="UnmappedExpectedLineItemObjectDataSource" AllowMultiRowSelection="True" HorizontalAlign="Left" OnPreRender="UnmappedExpectedLineItemRadGrid_PreRender" PageSize="5" BorderStyle="None" OnRowDrop="UnmappedExpectedLineItemRadGrid_RowDrop" GroupingEnabled="False" GridLines="None"> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"> </HeaderContextMenu> <ValidationSettings EnableValidation="False" /> <MasterTableView DataSourceID="UnmappedExpectedLineItemObjectDataSource" AllowMultiColumnSorting="True" GridLines="Both" Name="Unmapped Internal Line Items" DataKeyNames="LineItemIndex,LineItemId" EnableHeaderContextMenu="True" NoMasterRecordsText="No unmapped internal line items"> <CommandItemSettings ExportToPdfText="Export to Pdf" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> </ExpandCollapseColumn> <SortExpressions> <telerik:GridSortExpression FieldName="Product" SortOrder="Ascending" /> <telerik:GridSortExpression FieldName="TimeBand" SortOrder="Ascending" /> <telerik:GridSortExpression FieldName="Tier" SortOrder="Ascending" /> </SortExpressions> <Columns> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="LineItemIndex" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="LineItemIndex" HeaderText="Line Item Index" ReadOnly="True" SortExpression="LineItemIndex" UniqueName="LineItemIndex" Visible="False"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="LineItemId" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="LineItemId" HeaderText="Line Item Id" ReadOnly="True" SortExpression="LineItemId" UniqueName="LineItemId" Visible="False"> </telerik:GridNumericColumn> <telerik:GridBoundColumn Aggregate="Count" AutoPostBackOnFilter="True" CurrentFilterFunction="StartsWith" DataField="Product" GroupByExpression="Product" HeaderText="Product" ReadOnly="True" SortExpression="Product" UniqueName="Product"> <HeaderStyle Width="20%" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn Aggregate="Count" AllowFiltering="False" DataField="TimeBand" GroupByExpression="TimeBand" HeaderText="Time Band" ReadOnly="True" SortExpression="TimeBand" UniqueName="TimeBand"> </telerik:GridBoundColumn> <telerik:GridBoundColumn Aggregate="Count" AllowFiltering="False" DataField="Tier" GroupByExpression="Tier" HeaderText="Tier" ReadOnly="True" SortExpression="Tier" UniqueName="Tier"> </telerik:GridBoundColumn> <telerik:GridDateTimeColumn Aggregate="Min" AllowFiltering="false" DataField="BeginDate" DataFormatString="{0:d}" DataType="System.DateTime" GroupByExpression="BeginDate" HeaderText="Begin Date" ReadOnly="True" SortExpression="BeginDate" UniqueName="BeginDate"> </telerik:GridDateTimeColumn> <telerik:GridDateTimeColumn Aggregate="Max" AllowFiltering="false" DataField="EndDate" DataFormatString="{0:d}" DataType="System.DateTime" GroupByExpression="EndDate" HeaderText="End Date" ReadOnly="True" SortExpression="EndDate" UniqueName="EndDate"> </telerik:GridDateTimeColumn> <telerik:GridNumericColumn Aggregate="Sum" AllowFiltering="false" DataField="Calls" DataType="System.Int32" GroupByExpression="Calls" HeaderText="Calls" ReadOnly="True" SortExpression="Calls" UniqueName="Calls"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" AllowFiltering="false" DataField="Units" DataFormatString="{0:F2}" DataType="System.Decimal" GroupByExpression="Units" HeaderText="Units" ReadOnly="True" SortExpression="Units" UniqueName="Units"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Avg" AllowFiltering="false" DataField="Rate" DataFormatString="{0:F6}" DataType="System.Decimal" GroupByExpression="Rate" HeaderText="Rate" ReadOnly="True" SortExpression="Rate" UniqueName="Rate"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" AllowFiltering="false" DataField="Amount" DataFormatString="{0:F2}" DataType="System.Decimal" GroupByExpression="Amount" HeaderText="Amount" ReadOnly="True" SortExpression="Amount" UniqueName="Amount"> </telerik:GridNumericColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> <PagerStyle Mode="NextPrev" Position="Top" /> </MasterTableView> <GroupingSettings CaseSensitive="False" /> <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" AllowKeyboardNavigation="True" AllowRowHide="True" ReorderColumnsOnClient="True" AllowRowsDragDrop="True" EnableRowHoverStyle="True"> <Selecting AllowRowSelect="True" EnableDragToSelectRows="False" /> <Resizing AllowColumnResize="True" EnableRealTimeResize="True" /> </ClientSettings> <FilterMenu EnableImageSprites="False"> </FilterMenu> </telerik:RadGrid> </td> </tr> </table> </asp:Panel> </div> <div id="IncomingLineItems" style="float: right; width: 48%; padding: 10px"> <table class="dash" cellpadding="0" cellspacing="0"> <tr> <td> <img src="Common/images/chartHeaderLeft.gif" alt="" /> </td> <td class="title"> Unmapped Received Line Items </td> <td> <img src="Common/images/chartHeaderRight.gif" alt="" /> </td> </tr> </table> <asp:Panel ID="IncomingLineItemsPanel" CssClass="boxLayer" Style="margin-bottom: 20px" runat="server"> <table style="width: 100%"> <tr align="left"> <td> <telerik:RadGrid ID="UnmappedIncomingLineItemRadGrid" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" EnableViewState="False" OnItemCommand="UnmappedIncomingLineItemRadGrid_ItemCommand" DataSourceID="UnmappedIncomingLineItemObjectDataSource" AllowMultiRowSelection="True" HorizontalAlign="Left" PageSize="5" OnPreRender="UnmappedIncomingLineItemRadGrid_PreRender" OnRowDrop="UnmappedIncomingLineItemRadGrid_RowDrop" GroupingEnabled="False" GridLines="None"> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"> </HeaderContextMenu> <ValidationSettings EnableValidation="False" /> <MasterTableView DataSourceID="UnmappedIncomingLineItemObjectDataSource" AllowMultiColumnSorting="True" GridLines="Both" Name="Unmapped Internal Line Items" DataKeyNames="LineItemIndex,LineItemId" EnableHeaderContextMenu="True" NoMasterRecordsText="No unmapped received line items"> <CommandItemSettings ExportToPdfText="Export to Pdf" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> </ExpandCollapseColumn> <SortExpressions> <telerik:GridSortExpression FieldName="Product" SortOrder="Ascending" /> <telerik:GridSortExpression FieldName="TimeBand" SortOrder="Ascending" /> <telerik:GridSortExpression FieldName="Tier" SortOrder="Ascending" /> </SortExpressions> <Columns> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="LineItemIndex" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="LineItemIndex" HeaderText="Line Item Index" ReadOnly="True" SortExpression="LineItemIndex" UniqueName="LineItemIndex" Visible="False"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False" AllowSorting="False" DataField="LineItemId" DataType="System.Int32" Display="False" Groupable="False" GroupByExpression="LineItemId" HeaderText="Line Item Id" ReadOnly="True" SortExpression="LineItemId" UniqueName="LineItemId" Visible="False"> </telerik:GridNumericColumn> <telerik:GridBoundColumn Aggregate="Count" AutoPostBackOnFilter="True" CurrentFilterFunction="StartsWith" DataField="Product" GroupByExpression="Product" HeaderText="Product" ReadOnly="True" SortExpression="Product" UniqueName="Product"> <HeaderStyle Width="20%" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn Aggregate="Count" AllowFiltering="False" DataField="TimeBand" GroupByExpression="TimeBand" HeaderText="Time Band" ReadOnly="True" SortExpression="TimeBand" UniqueName="TimeBand"> </telerik:GridBoundColumn> <telerik:GridBoundColumn Aggregate="Count" AllowFiltering="False" DataField="Tier" GroupByExpression="Tier" HeaderText="Tier" ReadOnly="True" SortExpression="Tier" UniqueName="Tier"> </telerik:GridBoundColumn> <telerik:GridDateTimeColumn Aggregate="Min" AllowFiltering="false" DataField="BeginDate" DataFormatString="{0:d}" DataType="System.DateTime" GroupByExpression="BeginDate" HeaderText="Begin Date" ReadOnly="True" SortExpression="BeginDate" UniqueName="BeginDate"> </telerik:GridDateTimeColumn> <telerik:GridDateTimeColumn Aggregate="Max" AllowFiltering="false" DataField="EndDate" DataFormatString="{0:d}" DataType="System.DateTime" GroupByExpression="EndDate" HeaderText="End Date" ReadOnly="True" SortExpression="EndDate" UniqueName="EndDate"> </telerik:GridDateTimeColumn> <telerik:GridNumericColumn Aggregate="Sum" AllowFiltering="false" DataField="Calls" DataType="System.Int32" GroupByExpression="Calls" HeaderText="Calls" ReadOnly="True" SortExpression="Calls" UniqueName="Calls"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" AllowFiltering="false" DataField="Units" DataFormatString="{0:F2}" DataType="System.Decimal" GroupByExpression="Units" HeaderText="Units" ReadOnly="True" SortExpression="Units" UniqueName="Units"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Avg" AllowFiltering="false" DataField="Rate" DataFormatString="{0:F6}" DataType="System.Decimal" GroupByExpression="Rate" HeaderText="Rate" ReadOnly="True" SortExpression="Rate" UniqueName="Rate"> </telerik:GridNumericColumn> <telerik:GridNumericColumn Aggregate="Sum" AllowFiltering="false" DataField="Amount" DataFormatString="{0:F2}" DataType="System.Decimal" GroupByExpression="Amount" HeaderText="Amount" ReadOnly="True" SortExpression="Amount" UniqueName="Amount"> </telerik:GridNumericColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> <PagerStyle Mode="NextPrev" Position="Top" /> </MasterTableView> <GroupingSettings CaseSensitive="False" /> <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" AllowKeyboardNavigation="True" AllowRowHide="True" ReorderColumnsOnClient="True" AllowRowsDragDrop="True" EnableRowHoverStyle="True"> <Selecting AllowRowSelect="True" EnableDragToSelectRows="False" /> <Resizing AllowColumnResize="True" EnableRealTimeResize="True" /> </ClientSettings> <FilterMenu EnableImageSprites="False"> </FilterMenu> </telerik:RadGrid> </td> </tr> </table> </asp:Panel> </div> </div>/// <summary> /// Handles the Init event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void Page_Init(object sender, EventArgs e) { this.LineItemGroupRadGrid.Culture = CultureInfo.CurrentUICulture; this.LineItemGroupRadGrid.GridLines = GridLines.Both; this.UnmappedExpectedLineItemRadGrid.Culture = CultureInfo.CurrentUICulture; this.UnmappedExpectedLineItemRadGrid.GridLines = GridLines.Both; this.UnmappedIncomingLineItemRadGrid.Culture = CultureInfo.CurrentUICulture; this.UnmappedIncomingLineItemRadGrid.GridLines = GridLines.Both; } /// <summary> /// Page load event handler. /// </summary> /// <param name="sender">The event sender</param> /// <param name="e">The event arguments</param> protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { this.Response.Cache.SetCacheability(HttpCacheability.NoCache); } } /// <summary> /// Handles the DetailTableDataBind event for LineItemGroupRadGrid. /// </summary> /// <param name="source">The event source.</param> /// <param name="e">The event arguments.</param> protected void LineItemGroupRadGrid_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e) { GridDataItem parentItem = e.DetailTableView.ParentItem; int index = Convert.ToInt32(parentItem["lineItemGroupIndex"].Text, CultureInfo.InvariantCulture); int? id; int temp; if (int.TryParse(parentItem["lineItemGroupId"].Text, NumberStyles.Integer, CultureInfo.InvariantCulture, out temp)) { id = temp; } else { id = null; } if (e.DetailTableView.Name == "MappedExpectedLineItems") { e.DetailTableView.DataSource = ObjectDataSources.GetMappedExpectedLineItems(0, int.MaxValue, e.DetailTableView.FilterExpression, e.DetailTableView.SortExpressions.GetSortString(), index, id); } else if (e.DetailTableView.Name == "MappedIncomingLineItems") { e.DetailTableView.DataSource = ObjectDataSources.GetMappedIncomingLineItems(0, int.MaxValue, e.DetailTableView.FilterExpression, e.DetailTableView.SortExpressions.GetSortString(), index, id); } else { e.Canceled = true; } } /// <summary> /// Event handler for the Selecting event of the LineItemGroupObjectDataSource object. /// </summary> /// <param name="sender">Event sender.</param> /// <param name="e">Event arguments.</param> protected void LineItemGroupObjectDataSource_Selecting(object sender, ObjectDataSourceSelectingEventArgs e) { e.InputParameters["filterExpression"] = this.LineItemGroupRadGrid.MasterTableView.FilterExpression;}