Class
RadValidationEventArgs

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class RadValidationEventArgs : EventArgs

Inheritance: objectEventArgsRadValidationEventArgs

Inherited Members EventArgs.Empty

Constructors

RadValidationEventArgs(Control, Image, string, string, IRadValidationRule, bool)

Construct the RadValidationEventArgs object.

Declaration

cs-api-definition
public RadValidationEventArgs(Control control, Image errorImage, string errorText, string errorTitle, IRadValidationRule validationRule, bool isFailed)

Parameters

control

Control

The validated control. Must be RadEditorControl descendant

errorImage

Image

Erorr image

errorText

string

Error text

errorTitle

string

Error title

validationRule

IRadValidationRule

Validation rule

isFailed

bool

Validatation failed

Properties

Control

Get the Control which is evaluated in the ValidationRule.

Declaration

cs-api-definition
public Control Control { get; }

Property Value

Control

DisplayIconAndToolTip

Enable or Disable the Error border and error image.

Declaration

cs-api-definition
public bool DisplayIconAndToolTip { get; set; }

Property Value

bool

EnableToolTipShadow

Enable or Disable the ToolTip shadow.

Declaration

cs-api-definition
public bool EnableToolTipShadow { get; set; }

Property Value

bool

ErrorImage

Error image that will displayed next to the Validated control.

Declaration

cs-api-definition
public Image ErrorImage { get; set; }

Property Value

Image

ErrorSvgImage

Error SVG image that will displayed next to the Validated control.

Declaration

cs-api-definition
public RadSvgImage ErrorSvgImage { get; set; }

Property Value

RadSvgImage

ErrorText

Sets or Gets the ToolTip's Text.

Declaration

cs-api-definition
public string ErrorText { get; set; }

Property Value

string

ErrorTitle

Sets or Gets the ToolTip's Title.

Declaration

cs-api-definition
public string ErrorTitle { get; set; }

Property Value

string

IsValid

Gets or Sets the result from the rule evaluation.

Declaration

cs-api-definition
public bool IsValid { get; set; }

Property Value

bool

ToolTip

Gets or sets the custom ToolTip for the Rule.

Declaration

cs-api-definition
public ToolTip ToolTip { get; set; }

Property Value

ToolTip

ToolTipDuration

Sets the ToolTip's duration in Milliseconds

Declaration

cs-api-definition
public int? ToolTipDuration { get; set; }

Property Value

int?

ToolTipX

Sets the X position of the ToolTip.

Declaration

cs-api-definition
public int? ToolTipX { get; set; }

Property Value

int?

ToolTipY

Sets the Y position of the ToolTip.

Declaration

cs-api-definition
public int? ToolTipY { get; set; }

Property Value

int?

ValidationHelperElement

Gets or Sets the ValidationHelperElement descendant that contains the Error image. This element is set next to the validated control.

Declaration

cs-api-definition
public ValidationHelperElement ValidationHelperElement { get; set; }

Property Value

ValidationHelperElement

ValidationRule

The Rule that fires this event.

Declaration

cs-api-definition
public IRadValidationRule ValidationRule { get; }

Property Value

IRadValidationRule