Skip to main content

MenuItem.Visible Property

Gets or sets a value specifying the visibility of the current menu item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll


public bool Visible { get; set; }

Property Value

Type Default Description


true if the item is visible; otherwise false.


Use the Visible property of menu items to dynamically change the content of a menu. This property enables you to hide and display specific menu items when certain conditions are met.

Note that the Visible and MenuItem.VisibleIndex properties are interdependent. The false value assigned to the Visible property sets the MenuItem.VisibleIndex property to -1. Setting the Visible property back to true makes the MenuItem.VisibleIndex property set to a non-negative value it has previously.


If an item’s server Visible property is set to false, the item is not rendered into the web page at all, so it can’t be manipulated on the client side.

See Also