From b067d9a3a809fab01ea9ad8127b667f17a551353 Mon Sep 17 00:00:00 2001 From: "Christophe.Boulain" <> Date: Thu, 14 Jan 2010 13:12:27 +0000 Subject: Fixed Issue#94 --- framework/Web/UI/WebControls/TDataGridColumn.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/UI/WebControls/TDataGridColumn.php b/framework/Web/UI/WebControls/TDataGridColumn.php index 577c0068..ed53dc88 100644 --- a/framework/Web/UI/WebControls/TDataGridColumn.php +++ b/framework/Web/UI/WebControls/TDataGridColumn.php @@ -4,7 +4,7 @@ * * @author Qiang Xue * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2008 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Web.UI.WebControls @@ -418,6 +418,7 @@ abstract class TDataGridColumn extends TApplicationComponent if(($classPath=$this->getHeaderRenderer())!=='') { $control=Prado::createComponent($classPath); + $cell->getControls()->add($control); if($control instanceof IDataRenderer) { if($control instanceof IItemDataRenderer) @@ -428,7 +429,6 @@ abstract class TDataGridColumn extends TApplicationComponent } $control->setData($text); } - $cell->getControls()->add($control); } else if($this->getAllowSorting()) { @@ -489,6 +489,7 @@ abstract class TDataGridColumn extends TApplicationComponent if(($classPath=$this->getFooterRenderer())!=='') { $control=Prado::createComponent($classPath); + $cell->getControls()->add($control); if($control instanceof IDataRenderer) { if($control instanceof IItemDataRenderer) @@ -499,7 +500,6 @@ abstract class TDataGridColumn extends TApplicationComponent } $control->setData($text); } - $cell->getControls()->add($control); } else if($text!=='') $cell->setText($text); -- cgit v1.2.3