Configuring the Menu Control

  • Thread starter Thread starter clintonG
  • Start date Start date
C

clintonG

I haven't learned this control yet but I do need to know if it can be
configured to drop down instead of fly-out?

// Like this...
 
Thanks Mark but Vertical makes it fly-out. I didn't fool around enough with
Horizontal yet...

<%= Clinton
 
Yea, that's what it is (sanctuary.co.uk example). Just before coming back to
make note of what I discovered after hacked through and finally figured out
the terminology here is what I found noting I am configuring with one root
element to show the menu as if it were a single button with drop down
chices.

These fundamental settings meet my objectives:
Orientation="Horizontal"
StaticDisplayLevels="1" // root element, i.e. menu "label"
MaximumDynamicDisplayLevels="2" // how many items drop down

<%= Clinton
 
These fundamental settings meet my objectives:
Orientation="Horizontal"
StaticDisplayLevels="1" // root element, i.e. menu "label"
MaximumDynamicDisplayLevels="2" // how many items drop down

OK.

If you're interested, this is the code for the Sanctuary Rig menu:

<asp:Menu ID="mnuMenu" runat="server" Orientation="Horizontal"
StaticMenuItemStyle-Width="100" StaticMenuItemStyle-Height="20"
StaticMenuItemStyle-BackColor="Gainsboro"
StaticMenuItemStyle-ForeColor="Black"
StaticHoverStyle-BackColor="LightSteelBlue"
StaticMenuItemStyle-BorderColor="GrayText"
StaticMenuItemStyle-BorderWidth="1" StaticMenuItemStyle-BorderStyle="Ridge"
StaticPopOutImageUrl="" StaticEnableDefaultPopOutImage="false"
DynamicMenuItemStyle-Width="100" DynamicMenuItemStyle-Height="20"
DynamicMenuItemStyle-BackColor="Gainsboro"
DynamicMenuItemStyle-ForeColor="Black"
DynamicHoverStyle-BackColor="LightSteelBlue"
DynamicMenuItemStyle-BorderColor="GrayText"
DynamicMenuItemStyle-BorderWidth="1"
DynamicMenuItemStyle-BorderStyle="Ridge" DynamicPopOutImageUrl=""
DynamicEnableDefaultPopOutImage="false">
<Items>
<%-- items go here --%>
</Items>
</asp:Menu>
 
Thanks but I just about got done this afternoon and never bothered to look
at the HTML this menu control generates -- its nested tables -- so I know
understand what this CSS Control Adapter Toolkit [1] is for -- to clean up
the weighty menu and other controls -- I'm going to try to learn to apply
that tonight and see what happens or I may have to build my own using a
styled ul block.

The thing is, I'm going to have to make some kind of choice as this menu
must do a PostBack as I am using it to build a composite control. Then after
I get the PostBack integrated with the rest of the control I'm working on I
want to do it with Atlas. Ambitious huh?

<%= Clinton

[1]
http://weblogs.asp.net/scottgu/archive/2006/05/02/CSS-Control-Adapter-Toolkit-for-ASP.NET-2.0-.aspx
 
Back
Top