Welcome Guest Search | Active Topics | Sign In | Register

Changing the apperance of some menu strips Options
Gene Orshansky
Posted: Tuesday, June 5, 2007 12:16:18 PM
Rank: Newbie
Groups: Member

Joined: 6/5/2007
Posts: 1
Hi,

I need to change the apperance of some top level menus. For example, I use simple style 2 for my left menu. It displays me about 10 menu strips with plus sing on the left side of each strip menu. I need those plus sing to be visible only on menu items that have subitmes. For the rest of menu items plus sign should be invisible.

How could I do it?

Thanks
eo_support
Posted: Tuesday, June 5, 2007 12:29:00 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi Gene,

Try call the following code in your Page_Load:

Code: C#
foreach (EO.Web.MenuItem item in SlideMenu1.Items)
{
    if (item.SubMenu.Items.Count == 0)
    {
        item.LeftIcon.Url = "Blank";
        item.LeftIcon.ExpandedUrl = "Blank";
    }
}


The code walks through all the top level items and if it has no sub items, then change its left icon to "Blank". "Blank" is a built-in 1 by 1 transparent image that our menu recognizes.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.