From 7222855a7ac8ccd17240a5e7219f20bdb3db1125 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 22 Jun 2006 12:38:55 +0000 Subject: Added dataBindChildren when instantiating EmptyTemplate. --- framework/Web/UI/WebControls/TDataList.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'framework/Web/UI/WebControls/TDataList.php') diff --git a/framework/Web/UI/WebControls/TDataList.php b/framework/Web/UI/WebControls/TDataList.php index 0dac2be2..b6888225 100644 --- a/framework/Web/UI/WebControls/TDataList.php +++ b/framework/Web/UI/WebControls/TDataList.php @@ -1174,7 +1174,10 @@ class TDataList extends TBaseDataList implements INamingContainer, IRepeatInfoUs if($itemIndex>0 && $this->_footerTemplate!==null) $this->_footer=$this->createItemInternal(-1,'Footer',true,null); if($itemIndex===0 && $this->_emptyTemplate!==null) + { $this->_emptyTemplate->instantiateIn($this); + $this->dataBindChildren(); + } $this->setViewState('ItemCount',$itemIndex,0); } -- cgit v1.2.3