LayoutItemBase.Visible Property
Gets or sets a value specifying the visibility of the current layout item or group.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Remarks
Use the Visible property of layout items or groups to dynamically change the content of the ASPxFormLayout control. This property enables you to hide and display specific layout items when certain conditions are met.
Note that the Visible and LayoutItemBase.VisibleIndex properties are interdependent. A false
value assigned to the Visible property sets the LayoutItemBase.VisibleIndex property to -1. Setting the Visible property back to true
makes the LayoutItemBase.VisibleIndex property set to the non-negative value it has previously.
Note
If an item’s server Visible property is set to false
, the layout item is not rendered on the web page, so it can’t be manipulated on the client side.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Visible property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.