ClassRadValidationRule
RadValidationRule provides a validation logic which compares RadEditorControl's Property with Rule's Value.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadValidationRule : FilterDescriptor, INotifyPropertyChanged, INotifyPropertyChangingEx, ICloneable, IRadValidationRule
Inheritance: objectFilterDescriptorRadValidationRule
Derived Classes:
Implements:
Inherited Members
Constructors
RadValidationRule()
Declaration
public RadValidationRule()
RadValidationRule(string, FilterOperator, object)
Declaration
public RadValidationRule(string propertyName, FilterOperator filterOperator, object value)
Parameters
propertyName
filterOperator
value
Properties
AutoToolTip
Enable or Disable the ToolTip when validation fails.
CaseSensitive
Enable or Disable the case sensitive Rule's Like operator.
Declaration
public bool CaseSensitive { get; set; }
Property Value
Implements
Controls
Associated RadEditorControl descendants to this Rule
Declaration
public List<Control> Controls { get; set; }
Property Value
List<Control>
Implements
PropertyName
The Name of the Property from Control. This Property will be evaluated against the Rule's Value property.
Declaration
public override string PropertyName { get; set; }
Property Value
Overrides
Implements
ToolTipText
Gets or Sets the ToolTip Text. This text will be shown as ToolTip text when rule validation fails.
Declaration
public string ToolTipText { get; set; }
Property Value
Implements
ToolTipTitle
Gets or Sets the ToolTip Title Text. This text will be shown as ToolTip Title text when rule validation fails.
Declaration
public string ToolTipTitle { get; set; }
Property Value
Implements
Methods
AddControl(RadEditorControl)
Associates this rule with the specified RadEditorControl descendant.
Declaration
public virtual void AddControl(RadEditorControl control)
Parameters
control
A RadEditorControl descendant that represents the editor.
Implements
RemoveControl(RadEditorControl)
Removes the specified RadEditorControl descendant from this rule.
Declaration
public virtual void RemoveControl(RadEditorControl control)
Parameters
control
A RadEditorControl descendant that represents the editor.
Implements