summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-12-21 15:19:37 +0000
committerctrlaltca@gmail.com <>2011-12-21 15:19:37 +0000
commit57832028ea4380f2c185c18d857d2c6b7682e763 (patch)
treeb016c1dfdeb0530e4b19935310b05d43635ab82c /framework/Web/UI/ActiveControls
parent9409f9ee7d83635d262d303edee9136dd6170e14 (diff)
fix for #91; fixed TActiveCustomvalidator's behaviour and demo (more discussion in the ticket)
Diffstat (limited to 'framework/Web/UI/ActiveControls')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveCustomValidator.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveCustomValidator.php b/framework/Web/UI/ActiveControls/TActiveCustomValidator.php
index 80d2f522..e0884c55 100644
--- a/framework/Web/UI/ActiveControls/TActiveCustomValidator.php
+++ b/framework/Web/UI/ActiveControls/TActiveCustomValidator.php
@@ -102,6 +102,20 @@ class TActiveCustomValidator extends TCustomValidator
}
/**
+ * @param boolean whether the value is valid; this method will trigger a clientside update if needed
+ */
+ public function setIsValid($value)
+ {
+ parent::setIsValid($value);
+ if($this->getActiveControl()->canUpdateClientSide())
+ {
+ $client = $this->getPage()->getCallbackClient();
+ $func = 'Prado.Validation.updateActiveCustomValidator';
+ $client->callClientFunction($func, array($this, $value));
+ }
+ }
+
+ /**
* This method is invoked when a callback is requested. The method raises
* 'OnCallback' event to fire up the event handlers. If you override this
* method, be sure to call the parent implementation so that the event