ButtonSettings.CausesValidation Property
Gets or sets a value indicating whether validation (client and server) is performed when the button is clicked.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if validation is performed when the button is clicked; otherwise, false. |
Remarks
By default, a button click forces validation of an editor group that is specified by the ASPxButton.ValidationGroup property.
Note
Set the CausesValidation property to false when you use the ASPxButton.PostBackUrl property to post back to a different page. You should explicitly check validation when posting back to a different page.
You can use the following API to specify validation settings:
- ButtonSettings.ValidationContainerID - Specifies a container that contains controls for which the button causes validation.
- ButtonSettings.ValidateInvisibleEditors - Specifies whether to validate both invisible and visible editors.
See Also