This is a migrated thread and some comments may be shown as answers.

[Solved] Dynamic Update of 2 Menus at the same time

1 Answer 79 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Arnold Smith
Top achievements
Rank 1
Arnold Smith asked on 23 Mar 2010, 02:11 AM
Hi,

The requirements for an MVC project I'm working on require a horizontal menu "A" at the top of the page and a menu "B" in the left hand navigation (vertically oriented).

Scenario: When a user clicks on a topmost  menu "A" item, if there are sub items, they need to be displayed in the left hand navigation menu "B". Any other menu items that had been displayed in the left hand navigation need to be removed.

What is the best way to go about this?

Can I fill Menu "B" dynamically? If so, can someone give me an example?

Alternatively, maybe an accordion control might be substituted for Menu "B". The question is roughly the same. How can I dynamically display the right selections to the user?

Thanks!

Arnold

1 Answer, 1 is accepted

Sort by
0
Arnold Smith
Top achievements
Rank 1
answered on 23 Mar 2010, 03:33 PM
Hi again,

I've been thinking about this. I wonder if a viable option would be to code Menu "B" (or Menus "B"..."B1"...) and then set visibility based on selections in Menu "A" using jQuery.

If anyone else has some ideas on this, let me know.

Thanks

Arnold
Tags
Menu
Asked by
Arnold Smith
Top achievements
Rank 1
Answers by
Arnold Smith
Top achievements
Rank 1
Share this question
or