Hello,
I am trying to create a dynamic tabstrip/multipage section of a page, where the tabs and radpageview instances are database driven. It is easy to bind the tabstrip to a data source, but I am really struggling with how to get a dynamic RadMultiPage. Because the content of each RadPageView is non-trivial, I do not want to build up the entire page view in code and would much rather use the templating capability of Repeater to do the heavy lifting.
But no matter how I play with the code, I cannot get it to do the right thing. I would like to have something like this:
<telerik:RadTabStrip ID="FormulaTabs" runat="server" MultiPageID="FormulaContexts"
DataSourceID="ContextSource" DataTextField="qualifiedContextName" />
<telerik:RadMultiPage ID="FormulaContexts" runat="server">
<asp:Repeater ID="FormulaRepeater" runat="server" DataSourceID="ContextSource">
<ItemTemplate>
<telerik:RadPageView ID="FormulaPageSample" runat="server">
<asp:Label ID="Label2" runat="server" Text='<%# Eval("qualifiedContextName") %>' />
</telerik:RadPageView>
</ItemTemplate>
</asp:Repeater>
</telerik:RadMultiPage>
The goal is for the RadPageView to have content specific to the data source in the repeater and that, since the tabstrip is using the same data source and is pointing to the RadMultiPage, that the tabs would flip to the correct data. Of course, in the snippet above, VS complains because Repeater is not a recognized child element of RadMultiPage, and RadPageView is not a recognized child of Repeater. Putting RadMultiPage into the repeater's header template is equally invalid.
Is this at all possible?
Thanks, in advance,
Tom Otvos