Top menu items - sub link indicator

3 posts, 1 answers
  1. Samantha
    Samantha avatar
    50 posts
    Member since:
    May 2008

    Posted 21 Jan 2009 Link to this post

    I'm using a vertical menu, with the Gray skin.  Some of my top-level menu items have sub-menu items and some do not.  Is it possible to have the little arrows that show up in the sub-menu items to indicate further menus appear in the top-level navigation?
  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Jan 2009 Link to this post

    Hello Samantha,

    You can set the css class for the RadMenuItem in the PreRender event of the menu and apply the required style in the css class as shown below:
    protected void RadMenu1_PreRender(object sender, EventArgs e) 
            foreach (RadMenuItem rootItem in RadMenu1.Items) 
                if (rootItem.Items.Count > 0) 
                    rootItem.CssClass = "test"

         background: url('image') right center no-repeat !important; 

  3. Michael
    Michael avatar
    51 posts
    Member since:
    Dec 2008

    Posted 22 Jan 2009 Link to this post

    I'm building my menu Items dynamically in the code behide of a control.  Does the setting of the css properties of an item need to be in the preRender event? 

    I've tried setting them with my code behind function  as the items are being built but they don't seem to be taking effect. 
Back to Top