Class RadValidationRule
RadValidationRule provides a validation logic which compares RadEditorControl's Property with Rule's Value.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadValidationRule : FilterDescriptor, INotifyPropertyChanged, INotifyPropertyChangingEx, ICloneable, IRadValidationRule
Constructors
RadValidationRule()
Declaration
public RadValidationRule()
RadValidationRule(String, FilterOperator, Object)
Declaration
public RadValidationRule(string propertyName, FilterOperator filterOperator, object value)
Parameters
System.String
propertyName
|
FilterOperator
filterOperator
|
System.Object
value
|
Properties
AutoToolTip
Enable or Disable the ToolTip when validation fails.
Declaration
public bool AutoToolTip { get; set; }
Property Value
System.Boolean
|
Implements
CaseSensitive
Enable or Disable the case sensitive Rule's Like operator.
Declaration
public bool CaseSensitive { get; set; }
Property Value
System.Boolean
|
Implements
Controls
Associated RadEditorControl descendants to this Rule
Declaration
public List<Control> Controls { get; set; }
Property Value
System.Collections.Generic.List<System.Windows.Forms.Control>
|
Implements
IsFilterEditor
Inherit property. Not used in RadValidation Rule
Declaration
public override bool IsFilterEditor { get; set; }
Property Value
System.Boolean
|
Overrides
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
System.String
|
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
System.String
|
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
System.String
|
Implements
Value
Gets or sets the Value of this rule. Controls in the rule will be evaluated against this value.
Declaration
public override object Value { get; set; }
Property Value
System.Object
|
Overrides
Implements
Methods
AddControl(RadEditorControl)
Associates this rule with the specified RadEditorControl descendant.
Declaration
public virtual void AddControl(RadEditorControl control)
Parameters
RadEditorControl
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
RadEditorControl
control
A RadEditorControl descendant that represents the editor. |