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
|
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
|