Skip to main content

ASPxButton.ValidateInvisibleEditors Property

Specifies whether invisible editors should be validated together with visible ones.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public bool ValidateInvisibleEditors { get; set; }

Property Value

Type Default Description
Boolean false

true to validate both visible and invisible editors; false to validate only visible editors.


Generally, if the ASPxButton.CausesValidation property is set to true, a click on the ASPxButton initiates validation of editors that are visible on a page. In this case, editors that have been rendered on the page, but that are not currently visible (being contained within an inactive tab page, for instance) are not automatically validated. The ValidateInvisibleEditors property is useful to validate all the required editors within the page, regardless of their visibility state.

Note that you can use the ASPxButton.ValidationGroup or ASPxButton.ValidationContainerID property to specify the naming container or group of controls, for which the button initiates validation.

You can also initiate validation manually by using the client ASPxClientEdit.ValidateGroup, ASPxClientEdit.ValidateEditorsInContainer, ASPxClientEdit.ValidateEditorsInContainerById methods, and their server-side analogues.

See Also