New to Telerik UI for .NET MAUI? Start a free 30-day trial

Validates that the current value is not null or an empty string.

When a validation error occurs, the returned error message has the following general string format: "The field {0} is required."

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class DataFormEditorRequiredValidationRule : DataFormEditorPropertyValidationRule

Inheritance: objectDataFormValidationRuleDataFormEditorValidationRuleDataFormEditorPropertyValidationRuleDataFormEditorRequiredValidationRule

Inherited Members DataFormEditorPropertyValidationRule.ErrorMessagePropertyDataFormEditorPropertyValidationRule.ErrorMessage

Constructors

C#
public DataFormEditorRequiredValidationRule()