New to Telerik UI for WinFormsStart a free 30-day trial

RadValidationRule provides a validation logic which compares RadEditorControl's Property with Rule's Value.

Definition

Constructors

C#
public RadValidationRule()
C#
public RadValidationRule(string propertyName, FilterOperator filterOperator, object value)
Parameters:propertyNamestringfilterOperatorFilterOperatorvalueobject

Properties

Enable or Disable the ToolTip when validation fails.

C#
public bool AutoToolTip { get; set; }

Implements: IRadValidationRule.AutoToolTip

Enable or Disable the case sensitive Rule's Like operator.

C#
public bool CaseSensitive { get; set; }

Implements: IRadValidationRule.CaseSensitive

Associated RadEditorControl descendants to this Rule

C#
public List<Control> Controls { get; set; }

Implements: IRadValidationRule.Controls

The Name of the Property from Control. This Property will be evaluated against the Rule's Value property.

C#
public override string PropertyName { get; set; }

Overrides: FilterDescriptor.PropertyName

Implements: IRadValidationRule.PropertyName

Gets or Sets the ToolTip Text. This text will be shown as ToolTip text when rule validation fails.

C#
public string ToolTipText { get; set; }

Implements: IRadValidationRule.ToolTipText

Gets or Sets the ToolTip Title Text. This text will be shown as ToolTip Title text when rule validation fails.

C#
public string ToolTipTitle { get; set; }

Implements: IRadValidationRule.ToolTipTitle

Gets or sets the Value of this rule. Controls in the rule will be evaluated against this value.

C#
public override object Value { get; set; }

Overrides: FilterDescriptor.Value

Implements: IRadValidationRule.Value

Methods

Associates this rule with the specified RadEditorControl descendant.

C#
public virtual void AddControl(RadEditorControl control)
Parameters:controlRadEditorControl

A RadEditorControl descendant that represents the editor.

Implements: IRadValidationRule.AddControl(RadEditorControl)

Removes the specified RadEditorControl descendant from this rule.

C#
public virtual void RemoveControl(RadEditorControl control)
Parameters:controlRadEditorControl

A RadEditorControl descendant that represents the editor.

Implements: IRadValidationRule.RemoveControl(RadEditorControl)