I have a menu that looks like this:
Choice1 Choice2 Choice3 Choice 4 …
When the application opens, it goes to the list page for Jobs, which corresponds to Choice1. At that time, all other menu items should be disabled. When the user selects a job from the list on that first page, certain specific menu items should be enabled based on data values for that job. I can use the MenuItem_Adding event to access the menu items, but what properties are available for manipulating the menu at that time? I saw in sample code Item.Text and Item.Url. Where can I see a complete list of the properties available? If it’s not obvious, which one(s) do I use to enable/disable menu choices?
A simple solution is to use Client Script to add/remove the “disabled” class to the menu hyperlinks to enable/disable the menu items.
Thanks for your assistance. There was another question in the initial post, namely “Where can I see a complete list of the properties available?” for the item element in the MenuItem_Adding event. Is there a list available?
There is probably not. You will need to look at the source codes in “Models/aspnetfn.cs” for the list of classes and functions.