summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TDataList.php
diff options
context:
space:
mode:
authorxue <>2006-06-22 12:38:55 +0000
committerxue <>2006-06-22 12:38:55 +0000
commit7222855a7ac8ccd17240a5e7219f20bdb3db1125 (patch)
treec8b793b17d2395c46c7bb7f6817dccef283e3056 /framework/Web/UI/WebControls/TDataList.php
parentc252d502e371d71388939775bffb31eb27004814 (diff)
Added dataBindChildren when instantiating EmptyTemplate.
Diffstat (limited to 'framework/Web/UI/WebControls/TDataList.php')
-rw-r--r--framework/Web/UI/WebControls/TDataList.php3
1 files changed, 3 insertions, 0 deletions
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);
}