summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TBaseActiveControl.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/ActiveControls/TBaseActiveControl.php')
-rw-r--r--framework/Web/UI/ActiveControls/TBaseActiveControl.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/Web/UI/ActiveControls/TBaseActiveControl.php b/framework/Web/UI/ActiveControls/TBaseActiveControl.php
index c42f75e8..dfb7efeb 100644
--- a/framework/Web/UI/ActiveControls/TBaseActiveControl.php
+++ b/framework/Web/UI/ActiveControls/TBaseActiveControl.php
@@ -117,7 +117,7 @@ class TBaseActiveControl extends TComponent
*/
public function canUpdateClientSide()
{
- return $this->getControl()->getIsInitialized()
+ return $this->getControl()->getHasChildInitialized()
&& $this->getPage()->getIsCallback()
&& $this->getEnableUpdate();
}
@@ -319,7 +319,9 @@ class TBaseActiveCallbackControl extends TBaseActiveControl
if(is_array($options))
$options = array_merge($this->getClientSideOptions(),$options);
else
- $options = $this->getClientSideOptions();
+ $options = $this->getClientSideOptions();
+ //remove true as default to save bytes
+ $options['CausesValidation']= $options['CausesValidation'] ? '' : false;
$cs->registerCallbackControl($class, $options);
}