Dear All
I have a TabContainer and I would like to dynamically display a number of TabPanels in it according to the number of records retrieved from my database. I was really hoping to use a Repeater control to display the TabPanel multiple times along with my data but it doesn't look like you're allowed to use a Repeater control inside a TabContainer.
<cc1:TabContainer ID="JudgementTabs" runat="server" CssClass="ajax__tab_msngallery-theme">
<cc1:TabPanel ID="observationJudgement1Tab" runat="server"> <HeaderTemplate> <div> <asp:Image ID="observationJudgement1Img" runat="server" ImageUrl="Images/ungraded.gif" AlternateText="Ungraded" ToolTip="Ungraded" /> <div> Learning</div> </div> </HeaderTemplate> <ContentTemplate> <table class="judgement emphasised"> <tr> <td class="prompts"> <h3> Prompts</h3> <ul> <asp:Literal ID="JudgementPrompt1" runat="server" /> </ul> </td> <td class="grades"> <h3> Grade</h3> <asp:RadioButtonList ID="observationJudgement1" runat="server" RepeatDirection="Vertical" RepeatLayout="UnorderedList" AutoPostBack="true"> <asp:ListItem Value="1">Outstanding</asp:ListItem> <asp:ListItem Value="2">Good</asp:ListItem> <asp:ListItem Value="3">Satisfactory</asp:ListItem> <asp:ListItem Value="4">Inadequate</asp:ListItem> <asp:ListItem Selected="True" Value="0">Not Applicable</asp:ListItem> </asp:RadioButtonList> </td> <td class="feedback"> <h3> Feedback</h3> <ul> <asp:Literal ID="observationJudgement1Feedback" runat="server" /> </ul> </td> </tr> </table> </ContentTemplate> </cc1:TabPanel>
Please could you help me understand if there this a way I can use the Repeater with the TabPanels or do I need to find another way?
Many thanks
Daniel