// Name: Telerik.Sitefinity.Web.UI.Fields.Scripts.FormManagerEventArgs.debug.js
// Assembly: Telerik.Sitefinity
// Version: 13.3.7648.0
// FileVersion: 13.3.7648.0
Type.registerNamespace("Telerik.Sitefinity.Web.UI.Fields");
Telerik.Sitefinity.Web.UI.Fields.FormFieldValidationEventArgs = function (fieldControl, validationGroup) {
//
// Event args for validation of a field control
// If the event is Validated the result from the validation is taken, otherwise the standart processing is applied
// If the event is canceled the whole validation process is canceled - no more controls will be validated
//
this._fieldControl = fieldControl;
this._validated = false;
this._isValid = true;
this._validationGroup = validationGroup;
Telerik.Sitefinity.Web.UI.Fields.FormFieldValidationEventArgs.initializeBase(this);
};
Telerik.Sitefinity.Web.UI.Fields.FormFieldValidationEventArgs.prototype = {
/* -------------------- set up and tear down ----------- */
initialize: function () {
Telerik.Sitefinity.Web.UI.Fields.FormFieldValidationEventArgs.callBaseMethod(this, 'initialize');
},
dispose: function () {
Telerik.Sitefinity.Web.UI.Fields.FormFieldValidationEventArgs.callBaseMethod(this, 'dispose');
},
/* -------------------- properties ---------------- */
get_fieldControl: function () {
/// Gets the field control that is validated
/// fieldControl
return this._fieldControl;
},
set_fieldControl: function (value) {
/// Sets the field control that is validated
this._fieldControl = value;
},
get_isValid: function () {
/// Gets the result of the validation of the control
/// boolean
return this._isValid;
},
set_isValid: function (value) {
/// Result of the field validation - true/false
this._isValid = value;
},
get_validated: function () {
/// If processed by external handler should return true
/// boolean
return this._validated;
},
set_validated: function (value) {
/// Set by the external handler when the control was validated
this._validated = value;
},
get_validationGroup: function () {
/// Gets the validation group which the field control is part of
return this._validationGroup;
},
set_validationGroup: function (value) {
/// Sets the validation group of the control
this._validationGroup = value;
}
};
Telerik.Sitefinity.Web.UI.Fields.FormFieldValidationEventArgs.registerClass('Telerik.Sitefinity.Web.UI.Fields.FormFieldValidationEventArgs', Sys.EventArgs);
Telerik.Sitefinity.Web.UI.Fields.ValidationCompletedEventArgs = function (violationMessages, validationGroup, validationResult) {
///Args fired by the event that is raised after a form is validated
Telerik.Sitefinity.Web.UI.Fields.ValidationCompletedEventArgs.initializeBase(this);
this._validationGroup = validationGroup;
this._violationMessages = violationMessages;
this._validationResult = validationResult;
}
Telerik.Sitefinity.Web.UI.Fields.ValidationCompletedEventArgs.prototype = {
initialize: function () {
Telerik.Sitefinity.Web.UI.Fields.ValidationCompletedEventArgs.callBaseMethod(this, 'initialize');
},
dispose: function () {
Telerik.Sitefinity.Web.UI.Fields.ValidationCompletedEventArgs.callBaseMethod(this, 'dispose');
},
get_validationGroup: function () {
/// Gets the validation group which the field control is part of
return this._validationGroup;
},
set_validationGroup: function (value) {
/// Sets the validation group of the control
this._validationGroup = value;
},
get_violationMessages: function () {
/// Gets the error messages
return this._violationMessages;
},
set_violationMessages: function (value) {
/// Sets the error messages
this._violationMessages = value;
},
get_validationResult: function () {
/// Sets the result of the form fields validation
return this._validationResult;
}
}
Telerik.Sitefinity.Web.UI.Fields.ValidationCompletedEventArgs.registerClass('Telerik.Sitefinity.Web.UI.Fields.ValidationCompletedEventArgs', Sys.EventArgs);