+1-888-365-2779
Try Now
More in this section

Menu Children

2 posts, 0 answered
  1. dani_1980
    dani_1980 avatar
    2 posts
    Registered:
    03 Nov 2007
    04 Sep 2010
    Link to this post
    Hi,
    I'm trying to create a menu in sitefinity where the first and second level children are always on display, when I hover over a main menu item.

    For example my menu structure is as follow:
    - Customers
        - Case 
                - Case 1
                - Case 2
                - Case 3
                - Case 4
        - Examples
                Gallery 1
                Gallery 2
        - Logos

    If I hover customers, case, Examples and logos will appear horizontally with all of the sub children (i.e. case 1, 2, etc) appearing underneath the retropsective page. So when I hover over portfolio all of the first and second sub levels will show.

    Any direction would be great.

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 Sep 2010
    Link to this post
    Hello dani_1980,

    You can use SiteMenu control which wraps RadMenu. When you set the menu orientation (ItemFlow) to Vertical the items will be expanded horizontally. You can take a look at this demo.

    Then you can set Flow of the parents as described here - Controlling the Layout of Child Items

    sample

    if (item.Level == 0 && item.Text == "Customers")
               {
                   item.GroupSettings.Flow = ItemFlow.Horizontal;
                   item.GroupSettings.ExpandDirection = ExpandDirection.Right;
                   item.GroupSettings.Width = Unit.Pixel(150);
     
               }


    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered