Hi Luis,
Based on the code, if your own ValidatorControl implements the IValidator interface and works individually, it will ok.
initialize : function() {
AjaxControlToolkit.ValidatorCalloutBehavior.callBaseMethod(this, 'initialize');
var elt = this.get_element();
//
// Override the evaluation method of the current validator
//
if(elt.evaluationfunction) {
this._originalValidationMethod = Function.createDelegate(elt, elt.evaluationfunction);
this._validationMethodOverride = Function.createDelegate(this, this._onvalidate);
elt.evaluationfunction = this._validationMethodOverride;
}
}
Please first make sure that TargetControl's evaluationfunction works here. As an alternative, you shall use CustomValidator and use its script function to check the CheckBox's state.
If all these don't work, please post your sample here.If it is a little complex, you'd better post the whole project(your own Validator) somewhere and then I download it.
Best regards,
Jonathan
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.