Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<asp:Repeater ID="RepApplication" runat="server" OnItemDataBound="On_Application_DataBound">
    <HeaderTemplate>
        <table class="mGrid">
            <tr>
                <th>
                    ApplicationRole
                </th>
                <th>
                    ReviewStatus
                </th>
                <th>
                    CostCode
                </th>
                <th>
                    Branch
                </th>
                <th>
                    Comments
                </th>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr style="background-color: #D1D0CE">
            <td style="text-align: left; font-weight: bold;">
                <div id="dvApplication" style="float: left;">
                    <asp:Panel ID="dvImportHeader" runat="server">
                        <div style="float: left;">
                            <asp:Image ID="imgApplication" ImageUrl="~/Images/application.png" runat="server"
                                Width="17px" Height="15px" />
                        </div>
                        <div style="float: left; padding-left: 10px;">
                            <asp:Label ID="lblApplicationName" runat="server" ForeColor="#000000" Text='<%#DataBinder.Eval(Container,"DataItem.ApplicationName")%>'></asp:Label>
                        </div>
                        <asp:ImageButton runat="server" ID="imgImportHeader" ImageUrl="~/Images/bullet_arrow_down(2).png" />
                    </asp:Panel>
                    <cc1:CollapsiblePanelExtender ID="cpeApplicationName" runat="server" TargetControlID="dvImportContent"
                        CollapseControlID="dvImportHeader" ExpandControlID="dvImportHeader" CollapsedSize="0"
                        CollapsedImage="~/Images/bullet_arrow_down(2).png" ExpandedImage="~/Images/bullet_arrow_down(1).png">
                    </cc1:CollapsiblePanelExtender>
                </div>
            </td>
        </tr>
        <asp:Panel ID="dvImportContent" runat="server" Height="100px">
            <asp:Repeater ID="RepBCHData" runat="server">
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Label ID="lblApplicationRole" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.RoleName")%>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblReviewStatus" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.ReviewStatus")%>'>
                            </asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblCostCode" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.Code")%>'>
                            </asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblBranch" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.FunctionalContext1")%>'>
                            </asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="LastReviewComment" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.Comments")%>'></asp:Label>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </asp:Panel>
    </ItemTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
</asp:Repeater>
Posted
Comments
maya.r.shobana 15-May-15 1:58am    
the first repeater data(application name) should be collapsed and on clicking it the second repeater data should get expanded
Schatak 15-May-15 2:26am    
You means you need to have nested repeater?
maya.r.shobana 1-Jun-15 4:08am    
yes

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900