This is a migrated thread and some comments may be shown as answers.

RadMenu Layout

2 Answers 97 Views
Menu
This is a migrated thread and some comments may be shown as answers.
gimi
Top achievements
Rank 1
gimi asked on 10 May 2010, 11:08 PM
I am using RadMenu in Sitefinity as the navigation menu. I am curious to know if RadMenu can be configured to support the layout from the attached picture? Any solution?

Cheers,
GiMi

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 May 2010, 06:54 AM

Hi Gimi,

One suggestion to achieve the appearance is integrating RadPanelBar with RadMenu.This demo shows one such approach where RadMenu is embedded in the ItemTemplate of the panel items.

PanelBar And Menu

-Shinu.

0
gimi
Top achievements
Rank 1
answered on 11 May 2010, 11:19 PM
Hi Shinu,

Thanks for the message.

I ended up creating a new user control with the following code on page load event:
        if (!Page.IsPostBack) 
        { 
            foreach (CmsSiteMapNode node in SiteMap.RootNode.ChildNodes) 
            { 
                RadPanelItem radPanelItem = new RadPanelItem(node.GetCmsPage().MenuName, node.GetCmsPage().StaticUrl); 
                if (node.HasChildNodes) 
                { 
                    RadMenu radMenu = new RadMenu(); 
                    radMenu.Width = Unit.Percentage(100); 
                    radMenu.Flow = ItemFlow.Vertical; 
                    SiteMapDataSource ds = new SiteMapDataSource(); 
                    ds.StartFromCurrentNode = false
                    ds.ShowStartingNode = false
                    ds.StartingNodeUrl = node.GetCmsPage().StaticUrl; 
                    radMenu.DataSource = ds; 
                    radMenu.DataBind(); 
                    radPanelItem.Controls.Add(radMenu); 
                } 
                radPB.Items.Add(radPanelItem); 
            } 
        } 

Cheers,
GiMi
Tags
Menu
Asked by
gimi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
gimi
Top achievements
Rank 1
Share this question
or