Rank: Newbie Groups: Member
Joined: 6/5/2007 Posts: 3
|
We are creating a 3 level menu that is filled via the database. The top level is made of 4 roll over image menu items, with 2 levels of child menus being displayed in text underneath each. It is generated on the fly, and a default lookItem applied to give all the submenu a consistent look via CSS.
The problem I am having, is that we want each submenu to have a different style applied to it. So far I have not been successful in applying a different style to each submenu at runtime. Can you give me any code snippets that would show how to do this?
Thanks.
.NET 2.0, EO.Web.dll version 3.1.11.2
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi Chris,
The easiest way is to define a new look item and set the menu item's LookID to the new look item. You would want to define the look item in your .aspx file since even though your menu items are created on the fly, your look items are usually not. Once you have the look item in place, you can do:
menuItem.LookID = "the_id_of_the_look_item";
And then the menu item would pull all appearance settings from that look item.
Thanks
|