Skip to main content
A newer version of this page is available. .

ButtonSettings.ValidateInvisibleEditors Property

Gets or sets a value that specifies whether invisible editors should be validated together with visible ones.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public bool ValidateInvisibleEditors { get; set; }

Property Value

Type Description
Boolean

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

Remarks

Generally, if the ButtonSettings.CausesValidation property is set to true, a click on the Button 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 ButtonSettings.ValidationGroup or ButtonSettings.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