ASPxEditBase.ClientVisible Property
Gets or sets a value that specifies the initial visibility state of an editor on the client.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v20.2.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | **true** | true to make an editor initially displayed on the client; false to render the editor into the web page, but make it initially hidden on the client side. |
Remarks
Use the ClientVisible property to define an editor’s initial visibility state. The editor’s visibility can then be dynamically changed on the client side using the ASPxClientControlBase.SetVisible method.
Note
If an editor’s server Visible property is set to false, the editor is not rendered into the web page at all, so it can’t be manipulated on the client side.
Example
The complete sample project is available in the DevExpress Code Central database at E942.
<script runat="server">
protected void Page_Load(object sender, EventArgs e) {
}
protected void ASPxGlobalEvents1_ValidationCompleted(object sender,
DevExpress.Web.ValidationCompletedEventArgs e) {
lErrorMessageNotEqual.ClientVisible = !tbPassword.Value.Equals(tbConfirmedPassword.Value);
}
</script>
...
<dxe:ASPxLabel ID="lErrorMessageNotEqual" runat="server"
Text="Passwords are not equal!" Width="187px"
ClientInstanceName="ErrorMessageNotEqual" Font-Size="Smaller" ForeColor="Red"
ClientVisible="False">
</dxe:ASPxLabel>
...
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ClientVisible 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.