<telerik:RadGrid ID="grdparent" runat="server" Width="600px" AutoGenerateColumns="false"
OnNeedDataSource="Needdatasource" ItemStyle-Height="25px" AlternatingItemStyle-Height="25px"
SelectedItemStyle-Height="25px" BorderColor="#009933" BorderWidth="1px" GroupingEnabled="false"
AllowSorting="True" AllowMultiRowSelection="False" AllowFilteringByColumn="True"
AllowPaging="True" GridLines="None" ShowGroupPanel="false" ShowStatusBar="true"
FilterItemStyle-BackColor="#F1F7EE" PageSize="10">
<GroupingSettings CaseSensitive="false" />
<MasterTableView DataKeyNames="ParentID" AllowMultiColumnSorting="false" InsertItemPageIndexAction="ShowItemOnFirstPage"
InsertItemDisplay="Top" GroupLoadMode="Server" ShowHeadersWhenNoRecords="true"
CommandItemDisplay="None" EditMode="PopUp" EnableHeaderContextMenu="false"
CommandItemSettings-AddNewRecordText="Add" AllowAutomaticInserts="false"
AllowFilteringByColumn="True" AllowSorting="true" ExpandCollapseColumn-ButtonType="ImageButton">
<Columns>
<telerik:GridTemplateColumn>
<HeaderTemplate>
<table width="600px" class="mod_content" cellpadding="0" cellspacing="0" border="0">
<tr onclick="selectRow(this);">
<td style="width: 30px">
</td>
<td style="width: 50px">
Parent ID
</td>
<td style="width: 300px">
Parent Name
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table width="600px" class="mod_content" cellpadding="0" cellspacing="0" border="0">
<tr onclick="activeRow(this);">
<td style="width: 30px">
<a href="#" onclick="return toggleDivDisplay('tr_<%#DataBinder.Eval(Container,"DataItem.ParentID")%>', this, false,'Child.aspx?ParentID=<%#DataBinder.Eval(Container,"DataItem.ParentID")%>' );">
<img src="../images/Expand.gif" alt="Expand/Collapse" id="tr_<%#DataBinder.Eval(Container,"DataItem.ParentID")%>image"
height="14" width="14" border="0" /></a>
</td>
<td style="width: 50px">
<asp:Label ID="lblHdnParentID" runat="server" CssClass="gridlabel" Text='<%#DataBinder.Eval(Container, "DataItem.ParentID")%>'></asp:Label>
</td>
<td style="width: 150px">
<asp:Label ID="lblParentIDName" CssClass="gridlabel" Text='<%# Eval("ParentName") %>'
runat="server"></asp:Label>
</td>
</tr>
<tr style="padding: 0px 0px 0px 0px">
<td colspan="3" style="padding: 0px 0px 0px 0px">
<div id='tr_<%#DataBinder.Eval(Container,"DataItem.ParentID")%>' class="display_false"
style="padding-left: 15px">
<iframe id="tr_<%#DataBinder.Eval(Container,"DataItem.ParentID")%>frame" src="Child.aspx"
frameborder="0" scrolling="yes" height="150" width="100%"></iframe>
</div>
</td>
</tr>
</table>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>

Hi I have a scenario where I am creating table inside 2 seperate grid columns. I want the tables inside both the columns to be the same size.
For ex table 1 can have 4 rows while table 2 can have 6 rows. I match up the rows in table1 and table2 and if there is no matching row I add an empty cell to that row.
I want the rows to have the same height so the rows look aligned with the data... data in table1 to data in table2 or empty row in table1 to data in table 2. or if the data in table2 wraps to two lines then the corresponding row in table1 to have the same height.
Currently, they don't align well as the rows with empty space don't take up any height.
I've tried adding row height but that doesn't help.Please suggest
below is my code:
GridDataItem item = e.Item as GridDataItem; int accountID = Int32.Parse(item.GetDataKeyValue("AccountID").ToString()); DataRow[] dr = PayoutElection.GetPayouts_ByAccount_ListByParticipant(Int32.Parse(Profile.ParticipantID), accountID, PayoutTypeFilter); Table tblPayoutType = new Table(); Table tblPayoutDesc = new Table(); Table tblEffectiveDate = new Table(); foreach (DataRow row in dr) { TableRow trPayoutType = new TableRow(); trPayoutType.Attributes.Add("class", "mergedItems"); TableRow trPayoutDesc = new TableRow(); trPayoutDesc.Attributes.Add("class", "mergedItems"); TableRow trEffectiveDate = new TableRow(); trEffectiveDate.Attributes.Add("class", "mergedItems"); TableCell cellPayoutType = new TableCell(); cellPayoutType.Text = row["PayoutType"].ToString(); TableCell cellPayoutDesc = new TableCell(); cellPayoutDesc.Text = row["PayoutDescription"].ToString(); TableCell cellEffectiveDate = new TableCell(); DateTime effDate = (DateTime)row["EffectiveDate"]; DateTime currentDate = DateTime.Parse(Profile.CurrentDate); cellEffectiveDate.Text = effDate.ToString(Utility.MBFormatDate); trPayoutType.Cells.Add(cellPayoutType); tblPayoutDesc.Rows.Add(trPayoutDesc); trPayoutDesc.Cells.Add(cellPayoutDesc); tblPayoutType.Rows.Add(trPayoutType); trEffectiveDate.Cells.Add(cellEffectiveDate); tblEffectiveDate.Rows.Add(trEffectiveDate); if (effDate > currentDate) { if (cellPayoutType.Text == _currentPayoutType) { cellPayoutType.Text = ""; } } }item["PayoutType"].Controls.Add(tblPayoutType); item["PayoutDescription"].Controls.Add(tblPayoutDesc);<telerik:GridBoundColumn DataField="Id" DataType="System.Int32" FilterControlAltText="Filter Id column" HeaderText="Id" ReadOnly="True" SortExpression="Id" UniqueName="Id" Visible="false"/> <telerik:GridBoundColumn DataField="OrderId" DataType="System.Int32" FilterControlAltText="Filter OrderId column" HeaderText="Order" SortExpression="OrderId" UniqueName="OrderId" Visible="false" ReadOnly="true" /> <telerik:GridDropDownColumn DataSourceID="SqlDSProductList" ListTextField="Name" ListValueField="Id" HeaderStyle-Width="400px" UniqueName="VariantId" SortExpression="Name" HeaderText="Product" DataField="ProductVariantId" DropDownControlType="RadComboBox" AllowAutomaticLoadOnDemand="true" AllowVirtualScrolling="true" ShowMoreResultsBox="true" ItemsPerRequest="25"> </telerik:GridDropDownColumn> <telerik:GridTemplateColumn UniqueName="SKU"> <ItemTemplate> <asp:Label runat="server" ID="SkuId" OnLoad="SKU"></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:Label runat="server" ID="SkuId" Text="" OnLoad="SKU"></asp:Label> </EditItemTemplate> </telerik:GridTemplateColumn><telerik:RadAutoCompleteBox ID="OperatorAutoCompleteBox" runat="server" DropDownHeight="150" EmptyMessage="(Select Operator)" DataSourceID="sqlOperatorsLookupList" DataTextField="Full_Name" DataValueField="Operator_ID" Filter="Contains" InputType="Text" OnEntryAdded="OperatorAutoCompleteBox_SelectedOperatorChanged" OnEntryRemoved="OperatorAutoCompleteBox_SelectedOperatorChanged" AutoPostBack="true"> </telerik:RadAutoCompleteBox>
Protected Sub OperatorAutoCompleteBox_SelectedOperatorChanged(sender As Object, e As AutoCompleteEntryEventArgs)
do something here...
End Sub
<img alt="" src="http://mailinglijst.eu/klanten/11714/import/dorine%20wiersma.jpg" style="float: left;" /> Je kunt er mee naar musicals, naar Claudia de Breij, maar wat het allerleukste is, je kunt ermee naar mij'…zingt Dorine Wiersma in de nieuwe commercial van de PODIUM cadeaukaart.<br /> <br /> Wiersma, die voor het lied de Annie M.G. Schmidtprijs voor het beste theaterlied ontving, gebruikt de commercial van de PODIUM cadeaukaart om haar nieuwe theatershow eens even goed onder de aandacht te brengen!