CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 12/15/2006 11:58:22 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 49 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
jaspersiegmund
Asp.Net User
Menu: SelectedStyle of parent node12/15/2006 11:58:22 AM

0/0

Hi there,

I'm using an ASP Menu to display my sitemap (horizontal). I was working with the selectedstyle and have a question about that.

The structure I'm displaying contains a sitenode, items and subitems; so 3 layers. I can use the selectedstyle to colour the current item, that works fine. But what I would like is the parent item to be coloured as well. When the user selects a subitem from an itemmenu, I would want the item menu itself to be coloured, not just the subitem. Is there any way of getting this behaviour somehow?

Russ Helfand
Asp.Net User
Re: Menu: SelectedStyle of parent node12/15/2006 4:42:45 PM

0/0

The parent will be marked with the class AspNet-Menu-ChildSelected to denote that one of its children is selected.  You can create a CSS rule for that class.  This is demonstrated in the "simple menu" discussed in the tutorial (walk through) in the kit, http://www.asp.net/cssadapters/walkthru/walkthrough.aspx#SimpleMenu. The SimpleMenu demo (that you can run from that page) shows an example of styling the parent of a selected menu node.  Node the way that different colors are used to show the parent, selected menu item and its children.  You would want to do something similar but use background color not border color in your case.  Hope that helps.
Russ Helfand
Groovybits.com
jaspersiegmund
Asp.Net User
Re: Menu: SelectedStyle of parent node12/18/2006 7:41:22 AM

0/0

That help a lot, I'll get it done now. Thanks!
jaspersiegmund
Asp.Net User
Re: Menu: SelectedStyle of parent node12/18/2006 9:46:36 AM

0/0

Maybe a little too soon, I though the CSS class rendered in the normal asp:Menu as well, but it doesn't. I don't know if I'm gonna implement this adapter menu only for such a little thing. No options which don't require structural changes to the application?
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Harnessing MicroStation V8 Authors: G. V. Krishnan, James E. Taylor, Pages: 858, Published: 2003

Web:
Menu: SelectedStyle of parent node - ASP.NET Forums The SimpleMenu demo (that you can run from that page) shows an example of styling the parent of a selected menu node. ...
Top Menu with one Style when select even when a sub menuitem ... I would like the parent item to keep the selected style. ... Filed under: .net 2.0 menu control menuitem css selectedstyle A ...
Changing Background color of the Parent Node after Selection Tree ... I am able to achieve styles for the leaf nodes but when it comes to Parent node selected style . If some one can please post some example with the Parent ...
Working with TreeView WebControl Part 1 – Basics - .NET Controls ... The index is built by concatenating the ordinal number of the parent node at each level counting through the tree from 0 down to the selected node and ...
.NET - Creating styles in Expression Web Oct 9, 2007 ... It also has ‘CSS styles’ and ‘Selected style preview’ sections below these choices. The Options button displays a menu of view options that ...
Pop Menu Magic: Creating a Menu Do not use negative numbers because they will push your sub-menu away from its parent, creating a gap. Note: Offset and Overlap apply to all sub-menu levels ...
theADOguy - Rant: ASP.NET 2.0 TreeView without Postback? Solved! When a selection happens to a PopulateOnDemand parent node that is way down on the .... How can we show the selected style for selected item in treeview ...
[root] Log of /trunk/icons Create a new style / delete a style: You can access these functionalities via the menu or the tool bar. If you create a style, a clone of the selected style ...
$Id: ModelMenu.java 1987 2004-03-29 18:14:16Z byersa ... logError(e, "Failed to load parent menu definition '" + parentMenu + "' at resource '" + ... getAttribute("default-selected-style"); if (this. ...
Nabble - ydn-javascript - Highlighting the active Menu item I have a top nav Menu with items | ABC | 123 | 456 | and when I am on the |123| page I ... mouseover and mouseout event will erase your "selected" style. ...




Search This Site:










free skins

could not load data provider

user control

custom business objects & array lists

how to create main menu item without a page link?

custom module "could not load type error"

anyone know of a module that fills in the subscription gaps for 3.1

should i upgrade to 3.2 if priority is on performance gain/bug fixed for dnns already in production?

set version 2.1.2 configuration error

dotnetnuke - require read permission to drive root to install...!?

xml/xsl module in 2.0.4 problem...

3.0+ module/cell padding

packaging multiple skin/container sets in one zip file

how can i copy all users from one portal to another?

migrating existing non dnn site to dnn

dnn 3.0.4 issue - newsletter localization

file manager critical error has occurred.

potential search bug in dnn 3.0.13

finally here: capital area dnn user group - 1st meeting is tomorrow!

custom module tutorial (with sql db interaction)

open source ecommerce app?

webmail

3.0.11 solpart menu error

wire some events after successful login

getting the current portalid

error dns with some url

where is a scrolling news?

error using news article module - help, pls...

help! cannot log in admin/host page

user tracking (clicks)

  Privacy | Contact Us
All Times Are GMT