From d255f4d0e332740b3984e21ce3f7a4a4f1968ba3 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 2 May 2006 08:28:17 +0000 Subject: Adding more work on ActiveControls. --- framework/Web/UI/TControl.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI/TControl.php') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 1b5394ba..1db01df6 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -1215,9 +1215,6 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable protected function preRenderRecursive() { $this->autoDataBindProperties(); - - if($this->getEnabled() && $this instanceof IPostBackDataHandler) - $this->getPage()->registerPostDataLoader($this); if($this->getVisible(false)) { @@ -1238,6 +1235,10 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable } } $this->_stage=self::CS_PRERENDERED; + + + if($this->getEnabled() && $this instanceof IPostBackDataHandler) + $this->getPage()->registerPostDataLoader($this); } /** -- cgit v1.2.3