diff options
author | ctrlaltca@gmail.com <> | 2011-05-21 17:10:29 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-05-21 17:10:29 +0000 |
commit | 6f00b28a1d9c7409c956a83866eac48a9493e83c (patch) | |
tree | fb3e14f0a527cf32d186932b13bd6ae9ed50a5c1 /framework/Web/UI/WebControls/TBoundColumn.php | |
parent | 5a91b2a3328c8c15ce9dbed9a599ab87f9e8f112 (diff) |
branch/3.1: merged bugfixesfrom trunk/ up to r2880; correct svn:mergeinfo property
Diffstat (limited to 'framework/Web/UI/WebControls/TBoundColumn.php')
-rw-r--r-- | framework/Web/UI/WebControls/TBoundColumn.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TBoundColumn.php b/framework/Web/UI/WebControls/TBoundColumn.php index fdcde9b2..098ffeef 100644 --- a/framework/Web/UI/WebControls/TBoundColumn.php +++ b/framework/Web/UI/WebControls/TBoundColumn.php @@ -197,6 +197,7 @@ class TBoundColumn extends TDataGridColumn $control->setItemType($item->getItemType());
}
$cell->getControls()->add($control);
+ $cell->registerObject('EditControl',$control);
}
else
{
@@ -206,7 +207,20 @@ class TBoundColumn extends TDataGridColumn }
}
else
- $control=$cell;
+ {
+ if(($classPath=$this->getItemRenderer())!=='')
+ {
+ $control=Prado::createComponent($classPath);
+ if($control instanceof IItemDataRenderer)
+ {
+ $control->setItemIndex($item->getItemIndex());
+ $control->setItemType($item->getItemType());
+ }
+ $cell->getControls()->add($control);
+ }
+ else
+ $control=$cell;
+ }
$control->attachEventHandler('OnDataBinding',array($this,'dataBindColumn'));
break;
default:
|