Back to Devexpress

ASPxButton.ValidateInvisibleEditors Property

aspnet-devexpress-dot-web-dot-aspxbutton-1e752fd4.md

latest2.7 KB
Original Source

ASPxButton.ValidateInvisibleEditors Property

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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

See Also

Validation

ValidationGroup

ValidationContainerID

CausesValidation

ASPxButton Class

ASPxButton Members

DevExpress.Web Namespace