Tab
A newer version of this page is available. Switch to the current version.

ASPxButton.ValidateInvisibleEditors Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(false)]
public bool ValidateInvisibleEditors { get; set; }
<DefaultValue(False)>
Public Property ValidateInvisibleEditors As Boolean

Property Value

Type Default Description
Boolean

false

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

Remarks

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 ASPxClientEdit.ValidateGroup, ASPxClientEdit.ValidateEditorsInContainer, ASPxClientEdit.ValidateEditorsInContainerById client methods, and their server-side analogues.

See Also