Version 21.2

EditorValidatorOptions Class Properties

For a list of all members of this type, see EditorValidatorOptions members.

Public Properties
 NameDescription
Public PropertyClientEventsSet implementations of client events raised by a widget.

Event handler assumes 2 parameters: 1st parameter has name "evt" and 2nd parameter has name "ui". To get information about member variables available for "ui" parameter, please consult documentation of a widget and its events.

Examples:

1. Full implementation:

new Dictionary<string, string> { { "dropDownOpening", "function(evt,ui){alert('drop:'+ui.owner);}" } }

2. Content of inline function:

new Dictionary<string, string> { { "dropDownOpening", "alert('drop:'+ui.owner);" } }

3. Name of global function:

new Dictionary<string, string> { { "dropDownOpening", "nameOfGlobalFunction" } } Note:

Instead of explicit key-strings, which represent name of event exposed by a widget, the event-constants defined by a particular control can be used.

Example:

new Dictionary<string, string> { { ComboClientEvents.DropDownOpening, "nameOfGlobalFunction" } } (Inherited from Infragistics.Web.Mvc.ModelWidgetBase)
Public PropertyCreditCardGets or sets option to validate if value is a Credit Card number.

Note: This rule will only validate the checksum of the number using Luhn algorithm irregardless of type. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyCustomGets or sets a custom function to perform validation.

Use "this" to reference the calling validator and the value and optional field settings arguement to determine and return the state of the field. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyDateGets or sets option to validate if value is a date. This can help guide the valueRange validation.

Note: Dependat on JavaScript Date parsing which will accept a wide range of values. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyEmailGets or sets option to validate if value is an email. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyEqualToSets validation for not empty value in target control. Default value is false and validation is disabled. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyErrorMessageSets the custom error message. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyExecuteAllRulesGets/Sets if all rules for a field should be checked, so even if one fails the rest will continue executing. Note: This will not force checks on an empty field for rules that don't normally execute without a value. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyLanguageGets/sets Language the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel)
Public PropertyLengthRangeGets or sets minimum and maximum length of text or number of selected items. Null or 0 values are ignored. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyLocaleGets/sets the Locale of the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel)
Public PropertyMessageTargetGets or sets custom jQuery element, which innerHTML will be used to show validation messages. That can be SPAN, LABEL or DIV. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyNotificationOptionsOptions for the igNotifier used to show error messages. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyNumberGets or sets option to validate if value is a date. This can help guide the valueRange validation.

Note: Dependent on JavaScript Date parsing which will accept a wide range of values. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyOnBlurSets option to triggers validation when control loses focus. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyOnChangeSets option to triggers validation when value in control changes. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyOnSubmitSets option to triggers validation when the onsubmit event is raised on client. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyOptionalIndicationOptions to show an optinal label indication next to optional fields. Note: Indicators are not supported on grouped controls such as checkbox or radio button sets and the igRating control.  
Public PropertyPatternSets the javascript regular expression which method "test()" will be used for validation of value in control. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyRegionalGets/sets the Regional of the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel)
Public PropertyRequiredRequires the value in this field to be the same as another input element or editor control. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyRequiredIndicationOptions to show an asterisks indication next to required fields.

Note: Indicators are not supported on grouped controls such as checkbox or radio button sets and the igRating control.  
Public PropertySuccessMessageSets text for success message. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyThresholdGets or sets validation minimum input length. Validation won't be triggered for input before that value is reached on change and blur.

Note: This will have no effect on required fields on form submit. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Public PropertyValueRangeSets the minimum and maximum value allowed in the target control. (Inherited from Infragistics.Web.Mvc.ValidatorOptionsBase)
Protected Properties
 NameDescription
Protected PropertyStoreReturn the store with all of the options (Inherited from Infragistics.Web.Mvc.ModelBase)
See Also

View on GitHub