I've read the issue here: http://www.telerik.com/help/aspnet-ajax/panelbar-troubleshooting-root-items-collapse.html but I still can't get the root items to expand.
My ASPX:
My Code Behind:
This produces a list of PanelItems (One, Two, etc.) but they are not expandable and there is no content.
Thanks!
My ASPX:
<Telerik:RadPanelBar ID="panelBar" runat="server" Width="100%" ExpandMode="MultipleExpandedItems"> |
<Items> |
<Telerik:RadPanelItem> |
<Items> |
<Telerik:RadPanelItem> |
<ItemTemplate> |
<%# Eval("ShortDefinition") %> |
</ItemTemplate> |
</Telerik:RadPanelItem> |
</Items> |
</Telerik:RadPanelItem> |
</Items> |
<DataBindings> |
<Telerik:RadPanelItemBinding TextField="Label" Expanded="false" /> |
</DataBindings> |
</Telerik:RadPanelBar> |
My Code Behind:
namespace MyNamespace |
{ |
public partial class MyPage : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
panelBar.DataSource = new[] |
{ |
new { Label="One", ShortDefinition="This is #1." }, |
new { Label="Two", ShortDefinition="This is #2." }, |
new { Label="Three", ShortDefinition="This is #3." }, |
new { Label="Four", ShortDefinition="This is #4." }, |
new { Label="Five", ShortDefinition="This is #5." } |
}; |
panelBar.DataBind(); |
} |
} |
} |
This produces a list of PanelItems (One, Two, etc.) but they are not expandable and there is no content.
Thanks!