c# - Implement accordion within table and asp:repeater -
i create table inside repeater , data appears correctly, 2 records looks in image below.
want: how make accordion when user clicks on deposit number(example 16), new table appear , contain data.
this repeater first repeater code:
<asp:repeater id="rptdep" runat="server" > <headertemplate> <table class="table table-hover table-striped table-condensed table-bordered table-responsive"> <tr> <th>deposit no.</th> <th>custom declaration no.</th> <th>category</th> <th>location</th> <th>goods description</th> <th>units balance</th> <th>wt balance</th> <th>goods balance amount(lc)</th> </tr> </headertemplate> <itemtemplate> <tr> <td><a href="#"> <%#eval("depno") %></a></td> <td><%#eval("customdec") %></td> <td><%#eval("category") %></td> <td><%#eval("location") %></td> <td><%#eval("gooddesc") %></td> <td><%#eval("unitsbal") %></td> <td><%#eval("wtbal") %></td> <td><%#eval("lcbal") %></td> </tr> </itemtemplate> <footertemplate> </table> </footertemplate> </asp:repeater>
i know second repeater, how implement that, or how use foreach statement?
i got it, found solution reading article:
implement nested repeater (repeater inside repeater) example in asp.net using c# , vb.net
Comments
Post a Comment