I want to apply a css class to the level 1 menu item (parent) when it or any or it's children are selected.
I've looked at MSDN documentation and any number of examples and walkthroughs but I haven't come up with a way of managing this. I was thinking something like this might work but the style is not being applied to the parent. To further complicate matters, if I try to apply a css style to StaticSelectedStyle it doesn't pick it up at all.
<StaticSelectedStyle Font-Bold="True" ForeColor="#3333CC" />
protected void MenuItemClick_NavMenu(Object sender, MenuEventArgs e)
MenuItem parentItem = e.Item.Parent;
if (parentItem != null)
parentItem.Selected = true;
View Complete Post