diff options
Diffstat (limited to 'framework/Web/UI/TControl.php')
| -rw-r--r-- | framework/Web/UI/TControl.php | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 1f1d6c4d..1b5394ba 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -867,7 +867,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable  	 * Do not call this method directly. Instead, call {@link ensureChildControls}
  	 * to ensure child controls are created only once.
  	 */
 -	protected function createChildControls()
 +	public function createChildControls()
  	{
  	}
 @@ -1215,6 +1215,9 @@ 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))
  		{
 | 
