Back to Devexpress

NavBarItem.Visible Property

aspnet-devexpress-dot-web-dot-navbaritem-babc468f.md

latest2.0 KB
Original Source

NavBarItem.Visible Property

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool Visible { get; set; }
vb
<DefaultValue(True)>
Public Property Visible As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the item is visible; otherwise false.

|

Remarks

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

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

Note

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

VisibleIndex

Enabled

Navigation Bar

NavBarItem Class

NavBarItem Members

DevExpress.Web Namespace