Validation
Wisej.Web.Validation
Last updated
Was this helpful?
Wisej.Web.Validation
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Adds a common validation system to any .
You can drop this extender on any design surface to add validation rules to any control at design time using the added ValidationRules property. You can also use this component at runtime and invoke the method directly. Validation rules are executed in the order they are added to the array. When a validation rule fails validation, the next rules are NOT executed and the property of the control's event is set to true.
Initializes a new instance of the class.
Initializes a new instance of the class attached to a implementation.
container
: Associates an to the extender."/> (Default: null
)
Returns a value indicating whether a control can be extended.
extendee
The control to be extended.
Removes all validation rules.
control
Control associated with the validation rules to retrieve.
e
e
Removes all the validation rules from the control .
control
Sets the list of validation rules associated with the specified control .
control
Control associated with the validation rules.
rules
List of validation rules to enforce on the specified control .
You can add an handler to this event and handle the successful validation of all the controls that have a set of validation rules in one place.
You can add an handler to this event and handle the validation of all the controls that have a set of validation rules in one place.
An that represents the container of the extender.
When this property is null (default), the validation extender sets the property of the control being validated to the corresponding when a validation rule fails. Otherwise it invokes the method passing the control that failed validation and the corresponding string. You may use an instance of to display error icons and messages. But you can also implement the interface in a custom class and manage errors however required by the application. A third option is to assign a (or any that implements ) to the property to let the validation extender set the text property to the corresponding string.
The (or any that implements ) is automatically hidden ( is set to false) when there is no error message to display.
: Returns or sets the object that contains programmer-supplied data associated with the extender. (Default: null
)
Returns: . true if the control can be extended; otherwise, false.
Returns the collection of associated with the specified control .
Returns: . Array of the validation rules associated to the control .
Fires the event.
Fires the event.
Control to remove from the extender.
Fired after any control associated to the extender has been successfully validated.
Fired when the any control associated to the extender is being validated.