473,326 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Menu Control where non selected nodes auto collapse when another root node is chosen.

http://weblogs.asp.net/scottgu/archi...17/435765.aspx
http://aspnet.4guysfromrolla.com/articles/030806-1.aspx

I've been looking for an implementation of a Menu Control that controls
"drill down" on the non selected item.
For Example, if my menu system looked like this

-Home
-Manage Employees
---Add New Employee
---Edit Existing Employee
---View Employee
-Department
---Department Overviews
-----Employee Counts
-----Project Counts
---Add New Department
---Edit Existing Department
---View Department

A single - means a "root level" node. --- is a sublevel of - . and -----
is a sublevel of ---

Here are the root nodes:
Home
Manage Employees
Department
What I would like to have is when I click on Manage Employees, I would see
this:
-Home
-Manage Employees
---Add New Employee
---Edit Existing Employee
---View Employee
-Department
and when I click on Department

-Home
-Manage Employees (auto rolled up)
-Department
---Department Overviews
-----Employee Counts
-----Project Counts
---Add New Department
---Edit Existing Department
---View Department
Aka, when I pick 1 of the root levels, I see all its children, but any
children under another node will be hidden.
Ok, you're thinking "that's how it works".

Well, if I pick/expand and open Add Employee, and THEN go to Department, the
Add Employee (and siblings) are still expanded.
I'd like all the Employee stuff to collapse automatically when "Department"
is chosen.
I haven't done menus in about 8 months, so maybe its a property somewhere or
maybe some
This is kinda the look (from Scott Gu's site above)

http://www.scottgu.com/BlogPosts/data2/step1.png

I guess I'm asking if anybody knows of an implementation before I start
coding one up.
THANKS

Jul 3 '07 #1
0 1402

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: johkar | last post by:
I am confused on childNodes or children. When you have nested lists, I would think it would all be one list in the Dom, this doesn't seem to be the case. So how do you traverse an unordered list?...
4
by: (Pete Cresswell) | last post by:
I'm getting nodes into the thing, but when the dust settles, only the root-level nodes are visible. I know they're there because .Nodes.Count gives the right number.\ But I don't really...
4
by: meh | last post by:
I need to be able to persist a treeView to disk. I would like to save the node text, tag, image and selected image. I have done this using vb but I cant seem to translate from vb to vc#. Can ne1...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
10
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a...
3
by: Irocivan | last post by:
Hello, I download a nice collapse menu for free distribution from the internet. It works very well except that none of the parents nodes are clickable (i.e. when clicking on the parent node, the...
2
by: Claire | last post by:
I've a treeview control containing a root node with several children on a windows form. I select a node with a left mouse button click. I then select one of the other nodes with right mouse click...
0
by: divya1949 | last post by:
Create a windows c# application which will Read a xml file and populate nodes in the treeview. 1 On selection of treenode display the child nodes of that node in listview control 2. ...
3
by: dutsnekcirf | last post by:
I have a treeview control on a custom task pane in Excel. I've enable the ability to use Drag & Drop (by following this how-to) on the treeview to change the order of the nodes. The problem though...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.