
7 Answers, 1 is accepted
Please see our online example PanelBar And Menu.
Hope this will help you achieve your task.
Regards,
Rosi
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

Please refer to our Templates example that shows the needed approach.
Sincerely yours,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

I cannot seem to post an example here but is my C# code (the ASPX only has a bare bones panel control:
class
SummaryTemplate : ITemplate
{
public void InstantiateIn(Control container)
{
RadMenu menu = new RadMenu();
menu.Skin =
"Telerik";
menu.OnClientItemClicked =
"onClicked";
menu.CollapseAnimation.Type =
AnimationType.None;
RadMenuItem subMenu = new RadMenuItem("(change <img src='Images/arrow.gif' originalAttribute="src" originalPath="Images/arrow.gif" border='0' alt=''/>)");
subMenu.Items.Add(
new RadMenuItem("Books"));
subMenu.Items.Add(
new RadMenuItem("Cameras"));
subMenu.Items.Add(
new RadMenuItem("Apparel"));
menu.DataBinding +=
new EventHandler(menu_DataBinding);
menu.Items.Add(subMenu);
container.Controls.Add(menu);
}
void menu_DataBinding(object sender, EventArgs e)
{
}
}
public partial class PanelTest : System.Web.UI.Page
{
#region
Variables
#endregion
#region
Constructors
#endregion
#region
Events
#endregion
#region
Properties
#endregion
#region
Abstract Methods
#endregion
#region
Public Methods
#endregion
#region
Protected Methods
protected override void OnInit(EventArgs e)
{
//RadPanelBar1.ItemTemplate = new SummaryTemplate();
base.OnInit(e);
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
CreateSummaryPage();
}
SummaryTemplate template = new SummaryTemplate();
template.InstantiateIn(RadPanelBar1.Items[0]);
RadPanelBar1.DataBind();
}
#endregion
#region
Event Handlers
#endregion
#region
Menu Handlers
#endregion
#region
Private Methods
private void CreateSummaryPage()
{
RadPanelItem summaryPage = new RadPanelItem("Products > Books");
summaryPage.Expanded =
true;
RadPanelItem summaryItem = new RadPanelItem();
Control ctrl = LoadControl(@"~\SummaryPages\CustomerSummaryPage.ascx");
summaryItem.Controls.Add(ctrl);
summaryPage.Items.Add(summaryItem);
RadPanelBar1.Items.Add(summaryPage);
summaryPage =
new RadPanelItem("Customer testmonials");
summaryItem =
new RadPanelItem();
ctrl = LoadControl(
@"~\SummaryPages\CustomerSummaryPage.ascx");
summaryItem.Controls.Add(ctrl);
summaryPage.Items.Add(summaryItem);
RadPanelBar1.Items.Add(summaryPage);
summaryPage =
new RadPanelItem("How to find us");
summaryItem =
new RadPanelItem();
ctrl = LoadControl(
@"~\SummaryPages\CustomerSummaryPage.ascx");
summaryItem.Controls.Add(ctrl);
summaryPage.Items.Add(summaryItem);
RadPanelBar1.Items.Add(summaryPage);
}
#endregion
Unfortunately, the provided information does not help us much in reproducing the error. I'm afraid we could not be of much help unless we reproduce the issue on our side. It will be best if you can open a support ticket and send us a simple running project (incl. your custom skin, CSS, images, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.
Kind regards,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

Actually, your code works as expected. Still, you have forgotten to include the styles.css file that has some additional CSS classes to position the menu.
Regards,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center