Hi, I have been trying to accomplice the following functionality with a RadPanelBar.
Version: 2008.3.1105.20
I have a panelbar which is bound to a datasource. I want to display the tekst of the returnitems as a panelItem. This is al working fine. For each item created I want to show a usercontrol. To get this working I defined the next code:
In my understanding this would render a panelbar whit textheaders, which would expand when clicked on. But instead the code renders a text RadPanelBar-item then the userControl and then again text and usercontrol. So the usercontrol is also threathed like a RadPanelBar-item at the highest level. (hope this is clear to someone).
In short what I want:
[ Tekst 1]
[UserControl 1]
[ Tekst 2]
[UserControl 1]
[ Tekst 3 ]
[UserControl 1]
When clicked on one of the Tekst-items it should expland and show the content of the UserControl. As said, my code wil show the UserControl as one of the main-items (the same level as the Tekst-items)
Any ideas?
Version: 2008.3.1105.20
I have a panelbar which is bound to a datasource. I want to display the tekst of the returnitems as a panelItem. This is al working fine. For each item created I want to show a usercontrol. To get this working I defined the next code:
<telerik:RadPanelBar ID="rpbWizardStep2" runat="server" DataSourceID="odsPatterns" |
DataValueField="PatternId" DataTextField="Pattern" |
Width="100%" Skin="WebBlue" Height="100%" ExpandMode="FullExpandedItem" CollapseAnimation-Type="Linear" |
OnPreRender="rpbWizardStep2_PreRender"> |
<ItemTemplate> |
<asp:Label ID="ParentKeyId" runat="server" Visible="True"></asp:Label> |
<uc1:WizardItemControl runat="server" id="ucWizardItem" settype="MainGoal" EnableDateSelection="true" EnableDisciplineSelection="false" /> |
</ItemTemplate> |
<CollapseAnimation Type="Linear" Duration="100"></CollapseAnimation> |
<ExpandAnimation Type="None" Duration="100"></ExpandAnimation> |
</telerik:RadPanelBar> |
In short what I want:
[ Tekst 1]
[UserControl 1]
[ Tekst 2]
[UserControl 1]
[ Tekst 3 ]
[UserControl 1]
When clicked on one of the Tekst-items it should expland and show the content of the UserControl. As said, my code wil show the UserControl as one of the main-items (the same level as the Tekst-items)
Any ideas?