Thanks for the response.
But, the problem is that we have a tree with possibly up to 10,000 nodes, and the menu items can be configured individually for each node. In fact, we get the list of menu items (in the domain, we call them verbs) for each nodes with a call to a web-service.
Therefore, it is not possible to build all the menus before hand. Are there any suggestions you can provide? We could potentially modify the div tags (although, I realize that this is not recommended), for the menu, and manage it. Any insights would be very helpful.
All we need to be able to do is completely hide some menu items (not just disable them) on the client side.