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

Forums / Bugs & Issues / Still Displaying past expand level

Still Displaying past expand level

2 posts, 0 answered
  1. Jason
    Jason avatar
    31 posts
    Registered:
    07 Nov 2007
    11 Dec 2007
    Link to this post
    I am noticing a very frusterating bug with the Site Menu control.  If I create the following navigational structure:

    Home
    About
        Leadership
              Page 1
              Page 2

    Now if I go into the Menu control and tell it that I only want it to expand to the second level and no further it will do this.  However, the arrow will still be present next to the link in the drop down.  Further, while you can easily remove the arrow with CSS, the slide box does not seem to want to vanish, no matter what CSS combos I try.

    Is there a known workaround for this problem?
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    08 Dec 2016
    12 Dec 2007
    Link to this post
    Hello Jason,

    A possible solution is to wrap the RadMenu in a User Control and implement the required functionality in the handler of OnItemDataBound event. For example:

    public void RadMenu1_ItemDataBound(object sender, RadMenuEventArgs e)  
        {  
            ...  
            if (e.Item.Level > 1)  
            {  
                e.Item.Visible = false;  
                e.Item.Owner.Items.Clear();  
            }  
        } 

    For more information on this matter, please refer to the Developer Manual -> Controls -> RadControls -> Setting RadMenu Hierarchy Depth in a User Control.

    Hope this is helpful.

    Regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered