diff options
author | rojaro <> | 2010-09-02 08:55:46 +0000 |
---|---|---|
committer | rojaro <> | 2010-09-02 08:55:46 +0000 |
commit | 8e4c6a85a6ca14814d305d2e1f5b1da56cba74ac (patch) | |
tree | 5f69c27c001e8d01e8f97bf7400b5c0696274e1b /framework | |
parent | 88927b81ddbbb30ee0d51ceaa894f61577090e06 (diff) |
fixed #286
Diffstat (limited to 'framework')
-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:
|