Skip to main content

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.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public bool CausesValidation { get; set; }

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:

See Also