Welcome Guest Search | Active Topics | Sign In | Register

Applying style to Submenu Options
Chris Yew
Posted: Wednesday, June 13, 2007 11:55:53 AM
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
eo_support
Posted: Wednesday, June 13, 2007 12:03:04 PM
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


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.