RegexValidationRule

Wisej.Web.RegexValidationRule

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.2.0.0)

Validates the control using a custom Regexarrow-up-right expression.

public class RegexValidationRule : ValidationRule

Constructors

RegexValidationRule()

Initializes a new instance of RegexValidationRule.

Properties

FilterExpression

Stringarrow-up-right: Returns or sets the filter property (i.e. Filter) property on editable controls that support filtering of the keys as they are typed. (Default: null)

Name

Stringarrow-up-right: Returns or sets the name of the validation rule. (Default: "Regex")

ValidateExpression

Stringarrow-up-right: Returns or sets the Regexarrow-up-right used to validate the control. (Default: null)

Methods

OnControlCreated(control)

Invoked when the control associated with the validation rule is created and ready to be rendered on the client.

Parameter
Type
Description

control

Control being created.

OnValidating(control)

Validates the control using the validation rule.

Parameter
Type
Description

control

Returns: Booleanarrow-up-right. true if the validation is successful; otherwise false.

Last updated

Was this helpful?