|
-
Jun 17th, 2010, 07:05 AM
#1
Thread Starter
Junior Member
[RESOLVED] Nested repeater in collapsible panel
Does anyone know if its possible to have a nested repeater, with the nested repeater initially collapsed and expandable via the ajax CollapsiblePanelExtender
Code:
<asp:Repeater ID="rptDrill" runat="server">
<HeaderTemplate>
<table>
<tr>
<th class="FormDesciptionBox">View</th>
<th class="FormDesciptionBox">Username</th>
<th class="FormDesciptionBox">Fullname</th>
<th class="FormDesciptionBox">Score</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="FormContentBox"><asp:ImageButton ImageUrl="~/image/expander.gif" runat="server" ID="imgToggle" /></td>
<td class="FormContentBox"><asp:Literal ID="litUserName" runat="server" /></td>
<td class="FormContentBox"><asp:Literal ID="litFullname" runat="server" /></td>
<td class="FormContentBox"><asp:Literal ID="litAverage" runat="server" /></td>
</tr>
<cc1:CollapsiblePanelExtender runat="server" ID="CollapsiblePanelExtender1"
TargetControlID="ShowHide"
CollapsedSize="0"
ExpandedSize="300"
Collapsed="True"
ExpandControlID="imgToggle"
CollapseControlID="imgToggle"
ImageControlID="imgToggle"
SuppressPostBack="true"
SkinID="CollapsiblePanelDemo">
</cc1:CollapsiblePanelExtender>
<asp:Repeater runat="server" ID="rptDrillNest">
<ItemTemplate>
<asp:Panel ID="ShowHide" runat="server">
<tr>
<td class="FormContentBox"> </td>
<td class="FormContentBox"><%#Eval("title")%></td>
<td class="FormContentBox"><%#Eval("datetook")%></td>
<td class="FormContentBox"><%#Eval("score")%></td>
</tr>
</asp:Panel>
</ItemTemplate>
</asp:Repeater>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
-
Jun 17th, 2010, 10:22 AM
#2
Thread Starter
Junior Member
Re: Nested repeater in collapsible panel
I figured it out, cant do collapsible panels witha nested table. I chnaged it to this:
Code:
<asp:Repeater ID="rptDrill" runat="server">
<HeaderTemplate>
<table>
<tr>
<th class="FormDesciptionBox">View</th>
<th class="FormDesciptionBox">Username</th>
<th class="FormDesciptionBox">Fullname</th>
<th class="FormDesciptionBox">Score</th>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table>
<tr>
<td class="FormContentBox">
<asp:ImageButton ImageUrl="~/image/expander.gif" runat="server" ID="imgToggle" />
<asp:Literal ID="litCount" runat="server" />
</td>
<td class="FormContentBox"><asp:Literal ID="litUserName" runat="server" /></td>
<td class="FormContentBox"><asp:Literal ID="litFullname" runat="server" /></td>
<td class="FormContentBox"><asp:Literal ID="litAverage" runat="server" /></td>
</tr>
</table>
<cc1:CollapsiblePanelExtender runat="server" ID="CollapsiblePanelExtender1"
TargetControlID="ShowHide"
CollapsedSize="0"
Collapsed="True"
ExpandControlID="imgToggle"
CollapseControlID="imgToggle"
ImageControlID="imgToggle"
SuppressPostBack="true"
SkinID="CollapsiblePanelDemo">
</cc1:CollapsiblePanelExtender>
<asp:Panel ID="ShowHide" runat="server">
<asp:Repeater runat="server" ID="rptDrillNest">
<HeaderTemplate><table></HeaderTemplate>
<ItemTemplate>
<tr>
<td class="FormContentBox"><%#ViewReport(Eval(("resultsetID")))%></td>
<td class="FormContentBox"><%#Eval("title")%></td>
<td class="FormContentBox"><%#Eval("datetook")%></td>
<td class="FormContentBox"><%#Eval("score")%> %</td>
</tr>
</ItemTemplate>
<FooterTemplate></table></FooterTemplate>
</asp:Repeater>
</asp:Panel>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:Repeater>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|