Hi,
I'm using RadPanelBar Q1 2010 SP2. and having following scenario: I'm binding the top level items to List<T>. Then under each item I'd like to add ItemTemplate with quite a lot of controls inside (TextBoxes, GridView, etc.) so adding them dynamically in .cs isn't an option. Problem is that following declarative syntax displays right but doesn't expand :
ASPX:
CS:
I'm using RadPanelBar Q1 2010 SP2. and having following scenario: I'm binding the top level items to List<T>. Then under each item I'd like to add ItemTemplate with quite a lot of controls inside (TextBoxes, GridView, etc.) so adding them dynamically in .cs isn't an option. Problem is that following declarative syntax displays right but doesn't expand :
ASPX:
<
telerik:RadPanelBar
ID
=
"RadPanelBar1"
runat
=
"server"
Skin
=
"Vista"
ExpandMode
=
"FullExpandedItem"
DataFieldParentID
=
"Id"
DataTextField
=
"Name"
>
<
ItemTemplate
>
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
></
asp:TextBox
>
</
ItemTemplate
>
</
telerik:RadPanelBar
>
CS:
ObjectiveCollection objectives = user.Objectives;
RadPanelBar1.DataSource = objectives;
RadPanelBar1.DataBind();