Ramco Ramco

Ramco Ramco

  • 464
  • 2.9k
  • 403.5k

Column alignment not correct in Inner Repeater

Sep 13 2022 8:59 AM

Hi

   In second record Alignment is not correct. Below is the Code.

Can we  reduce gap between rows

 //imgur.com/pFGHw3E

<table class='table table-bordered table-hover' id='tblParticipant'>
    <thead>
        <tr>
            <th class='nosort2'>#</th>
            <th>Id</th>
            <th>Name</th>
            <th colspan="5"></th>
        </tr>
    </thead>
    <tbody>
        <asp:Repeater ID="rptParticipant" runat="server" OnItemDataBound="rptParticipant_ItemDataBound">
            <ItemTemplate>
                <tr>
                    <td><asp:Literal ID="ltrlNum" Text="<%# Convert.ToString(Container.ItemIndex + 1) %>" runat="server"></asp:Literal></td>
                    <td><asp:Label ID="lblId" runat="server" Text='<%#Eval ("Id") %>' /></td>
                    <td><asp:Label ID="lblName" runat="server" Text='<%#Eval ("Name") %>' /></td>
                    <td>
                        <table class='table table-columned' id='tblNominee'>
                            <thead>
                                <tr>
                                    <th>Name</th>
                                    <th>Designation</th>
                                    <th>Phone No</th>
                                    <th>Email</th>
                                    <th>Action</th>
                                </tr>
                            </thead>
                            <tbody>
                                    <asp:Repeater ID="rptNominee" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <asp:Literal ID="ltrlNomineeName" runat="server" Text='<%# Eval("Name") %>'></asp:Literal>
                                            </td>
                                            <td>
                                                <asp:Literal ID="ltrlDesignation" runat="server" Text='<%# Eval("Designation") %>'></asp:Literal>
                                            </td>
                                            <td>
                                                <asp:Literal ID="ltrlPhoneNo" runat="server" Text='<%# Eval("PhoneNo") %>'></asp:Literal>
                                            </td>
                                            <td>
                                                <asp:Literal ID="ltrlEmail" runat="server" Text='<%# Eval("Email") %>'></asp:Literal>
                                            </td>
                                            <td>
                                            <asp:LinkButton ID="lnkNomiee" OnClick="Add" runat="server" class="navbar-nav-link font-weight-semibold" ><span class="text-pink"><i class="icon-folder-upload mr-1"></i>Add Nominee</span></asp:LinkButton></td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </tbody>
</table>

 

Thanks