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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadValidationEventArgs : EventArgs

Inheritance: objectEventArgsRadValidationEventArgs

Inherited Members EventArgs.Empty

Constructors

Construct the RadValidationEventArgs object.

C#
public RadValidationEventArgs(Control control, Image errorImage, string errorText, string errorTitle, IRadValidationRule validationRule, bool isFailed)
Parameters:controlControl

The validated control. Must be RadEditorControl descendant

errorImageImage

Erorr image

errorTextstring

Error text

errorTitlestring

Error title

validationRuleIRadValidationRule

Validation rule

isFailedbool

Validatation failed

Properties

Get the Control which is evaluated in the ValidationRule.

C#
public Control Control { get; }

Enable or Disable the Error border and error image.

C#
public bool DisplayIconAndToolTip { get; set; }

Enable or Disable the ToolTip shadow.

C#
public bool EnableToolTipShadow { get; set; }

Error image that will displayed next to the Validated control.

C#
public Image ErrorImage { get; set; }

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

C#
public RadSvgImage ErrorSvgImage { get; set; }

Sets or Gets the ToolTip's Text.

C#
public string ErrorText { get; set; }

Sets or Gets the ToolTip's Title.

C#
public string ErrorTitle { get; set; }

Gets or Sets the result from the rule evaluation.

C#
public bool IsValid { get; set; }

Gets or sets the custom ToolTip for the Rule.

C#
public ToolTip ToolTip { get; set; }

Sets the ToolTip's duration in Milliseconds

C#
public int? ToolTipDuration { get; set; }

Sets the X position of the ToolTip.

C#
public int? ToolTipX { get; set; }

Sets the Y position of the ToolTip.

C#
public int? ToolTipY { get; set; }

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

C#
public ValidationHelperElement ValidationHelperElement { get; set; }

The Rule that fires this event.

C#
public IRadValidationRule ValidationRule { get; }