Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ValidationRulesFactory Members

In This Article
Provides methods that allow you to add validation rules.

#Constructors

Name Description
ValidationRulesFactory(OptionsOwnerContext) For internal use only. Initializes a new ValidationRulesFactory class instance.

#Methods
Show Inherited Hide Inherited

Name Description
AddAsync() Adds a validation rule that is checked asynchronously. Use async rules for server-side validation.
AddCompare() Adds a validation rule that checks if an editor’s value is equal to another editor’s value.
AddCustom() Adds a custom validation rule.
AddEmail() Adds a validation rule that checks if an editor’s value is a valid e-mail.
AddNumeric() Adds a validation rule that checks if an editor has a numeric value.
AddPattern() Adds a validation rule that checks if an editor’s value matches a specified pattern.
AddRange() Adds a validation rule that checks if an editor’s value falls within a specified range.
AddRequired() Adds a validation rule that checks if an editor’s value is not null.
AddStringLength() Adds a validation rule that checks if the length of an editor’s value does not exceed the specified limit.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also