The following tables list the members exposed by ValidatorOptionsBase.
Name | Description | |
---|---|---|
ValidatorOptionsBase Constructor |
Name | Description | |
---|---|---|
ClientEvents | Set 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) | |
CreditCard | Gets 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. | |
Custom | Gets 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. | |
Date | Gets 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. | |
Gets or sets option to validate if value is an email. | ||
EqualTo | Sets validation for not empty value in target control. Default value is false and validation is disabled. | |
ErrorMessage | Sets the custom error message. | |
ExecuteAllRules | Gets/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. | |
Language | Gets/sets Language the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel) | |
LengthRange | Gets or sets minimum and maximum length of text or number of selected items. Null or 0 values are ignored. | |
Locale | Gets/sets the Locale of the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel) | |
MessageTarget | Gets or sets custom jQuery element, which innerHTML will be used to show validation messages. That can be SPAN, LABEL or DIV. | |
NotificationOptions | Options for the igNotifier used to show error messages. | |
Number | Gets 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. | |
OnBlur | Sets option to triggers validation when control loses focus. | |
OnChange | Sets option to triggers validation when value in control changes. | |
OnSubmit | Sets option to triggers validation when the onsubmit event is raised on client. | |
Pattern | Sets the javascript regular expression which method "test()" will be used for validation of value in control. | |
Regional | Gets/sets the Regional of the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel) | |
Required | Requires the value in this field to be the same as another input element or editor control. | |
SuccessMessage | Sets text for success message. | |
Threshold | Gets 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. | |
ValueRange | Sets the minimum and maximum value allowed in the target control. |
Name | Description | |
---|---|---|
Store | Return the store with all of the options (Inherited from Infragistics.Web.Mvc.ModelBase) |
Name | Description | |
---|---|---|
AddClientEvent | Adds javascript function to process client event of widget. (Inherited from Infragistics.Web.Mvc.ModelWidgetBase) | |
ToJson | Serializes the object to JSON. (Inherited from Infragistics.Web.Mvc.ModelBase) |
Name | Description | |
---|---|---|
Camelize | Converts the provided string to camel case. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
EnsureClientEvents | Adds client events to Serializes the internal model store into json. (Inherited from Infragistics.Web.Mvc.ModelWidgetBase) | |
GetBool | Gets the value of a bool property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetChar | Sets the value of a char property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetDateTime | Gets the value of a DateTime property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetDouble | Gets the value of a double property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetIEnumerable<T> | Gets the value of an IEnumerable property of the model. If the value is null a new IEnumerable of type T will be created. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetInt | Gets the value of an int property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetJSLiteral | Sets the value of a literal property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetLong | Gets the value of a long property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetModel<T> | Gets the value of an IModel property of the model. If the value is null a new model of type T will be created. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetString | Gets the value of a string property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetStringEnum<T> | Gets the value of a string property whose values are the lowercase values of an Enum. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetValue<T> | Gets a property value of arbitrary type. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetValueModel<T> | Gets the value of an IModel property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromBool | Serializes a bool object into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromDateTime | Serializes a DateTime object into json Date object. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromDouble | Serializes a double object into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromFloat | Serializes a float object into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromIDictionary | Serializes an IDictionary of objects into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromIEnumerable | Serializes an IEnumerable object into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromInt | Serializes an int object into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromModelStore | Serializes the internal model store into json. (Inherited from Infragistics.Web.Mvc.ModelWidgetBase) | |
JsonFromObject | Serializes an arbitrary object in json using the typed serialization methods. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromString | Serializes a string object into json string, escaping all single quotes. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetBool | Sets a value to a bool property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetBrush | (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetCamelizedStringEnum<T> | Sets the value of a string property whose values are the lowercase values of an Enum. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetChar | Gets the value of a char property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetDateTime | Sets a value to a DateTime property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetDouble | Sets a value to a double property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetIEnumerable<T> | Sets a value to an IEnumerable property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetInt | Sets a value to an int property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetJSLiteral | Gets the value of a literal property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetLong | Sets a value to a long property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetModel<T> | Sets a value to an IModel property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetString | Sets a value to a string property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetStringEnum<T> | Sets the value of a string property whose values are the lowercase values of an Enum. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetValue<T> | Sets a property value of arbitrary type. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
TransformData | Transforms the data. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
ValidValueType<T> | Checks type for value of existing property. Returns false as well if non existing property. (Inherited from Infragistics.Web.Mvc.ModelBase) |
View on GitHub