TValidatorClientSide class.
Client-side validator events can be modified through the TBaseValidator::getClientSide property of a validator. The subproperties of ClientSide are those of the TValidatorClientSide properties. The client-side validator supports the following events.
The <tt>OnValidate</tt> event is raise before the validator validation functions are called.
The <tt>OnValidationSuccess</tt> event is raised after the validator has successfully validate the control.
The <tt>OnValidationError</tt> event is raised after the validator fails validation.
See the quickstart documentation for further details.
| Method Details |
getObserveChanges
| public boolean getObserveChanges |
() |
| Output |
|
boolean
| true to observe changes. |
| Exception |
|
getOnValidate
| public string getOnValidate |
() |
| Output |
|
string
| javascript code for client-side OnValidate event. |
| Exception |
|
getOnValidationError
| public string getOnValidationError |
() |
| Output |
|
string
| javascript code for client-side OnError event. |
| Exception |
|
getOnValidationSuccess
| public string getOnValidationSuccess |
() |
| Output |
|
string
| javascript code for client-side OnSuccess event. |
| Exception |
|
setObserveChanges
| public void setObserveChanges |
(boolean $value ) |
| Input |
| boolean | $value | true to revalidate when the control to validate changes value. |
| Output |
| Exception |
|
setOnValidate
| public void setOnValidate |
(string $javascript ) |
Client-side OnValidate validator event is raise before the validators validation functions are called.
| Input |
| string | $javascript | javascript code for client-side OnValidate event. |
| Output |
| Exception |
|
setOnValidationError
| public void setOnValidationError |
(string $javascript ) |
Client-side OnError event is raised after validation failure.
This will override the default client-side validator behaviour.
| Input |
| string | $javascript | javascript code for client-side OnError event. |
| Output |
| Exception |
|
setOnValidationSuccess
| public void setOnValidationSuccess |
(string $javascript ) |
Client-side OnSuccess event is raise after validation is successfull.
This will override the default client-side validator behaviour.
| Input |
| string | $javascript | javascript code for client-side OnSuccess event. |
| Output |
| Exception |
|