Hi...
Kinda new to the PanelBar and I am trying to do something specific with it that I am not finding on the forums.
I have a PanelBar which I am databinding in the code behind.
Each Item will have a repeater inside it so I have the following code
Bound like this.
The problem is that once this is databound, the PanelBar doesnt collapse any items at all. Everything is expanded and the repeater and it's contents are shown for all items. Items will not collapse when the header is clicked on.
Am I missing something? I would like to use this control specifically for the expand/collapse functionality.
Kind Regards,
Andrew
Kinda new to the PanelBar and I am trying to do something specific with it that I am not finding on the forums.
I have a PanelBar which I am databinding in the code behind.
Each Item will have a repeater inside it so I have the following code
<
telerik:RadPanelBar
ID
=
"RadPanelBar1"
runat
=
"server"
ExpandMode
=
"FullExpandedItem"
>
<
ExpandAnimation
Type
=
"None"
/>
<
CollapseAnimation
Type
=
"None"
/>
<
ItemTemplate
>
<
asp:Repeater
ID
=
"PremisesRepeater"
runat
=
"server"
>
<
ItemTemplate
>
<%--..some user control--%>
</
ItemTemplate
>
</
asp:Repeater
>
</
ItemTemplate
>
</
telerik:RadPanelBar
>
Bound like this.
RadPanelBar1.DataSource = MyCustomer.MyBusinesses;
RadPanelBar1.DataTextField =
"Id"
;
RadPanelBar1.DataValueField =
"Id"
;
RadPanelBar1.DataBind();
The problem is that once this is databound, the PanelBar doesnt collapse any items at all. Everything is expanded and the repeater and it's contents are shown for all items. Items will not collapse when the header is clicked on.
Am I missing something? I would like to use this control specifically for the expand/collapse functionality.
Kind Regards,
Andrew