Hide individual menuitem from webmenu
//create OnSetMenuItemProperties eventprotected void AxToolBar_SetMenuItemProperties(object sender, SetMenuItemPropertiesEventArgs e)
{
// Remove the menu item context (query string will be empty)
if (e.MenuItem.MenuItemAOTName == "EP_XXXXXXXX") //
{
e.MenuItem.Hidden = true;
}
if (e.MenuItem.MenuItemAOTName == "EP_XXXXXXXX")
{
e.MenuItem.Hidden = true;
}
}
No comments:
Post a Comment