summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TEditCommandColumn.php
diff options
context:
space:
mode:
authorxue <>2007-02-05 21:55:51 +0000
committerxue <>2007-02-05 21:55:51 +0000
commit81b323cf3d27949a5c78d44bd016044be3197b6c (patch)
tree73b3cb8f214b96237812e33ed4f1b0637172ae53 /framework/Web/UI/WebControls/TEditCommandColumn.php
parent0aaa8b5ef02479653c0a532d9249b423ef34c7ca (diff)
Added renderer feature to TDataGrid.
Diffstat (limited to 'framework/Web/UI/WebControls/TEditCommandColumn.php')
-rw-r--r--framework/Web/UI/WebControls/TEditCommandColumn.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TEditCommandColumn.php b/framework/Web/UI/WebControls/TEditCommandColumn.php
index 74e92852..9212e7fd 100644
--- a/framework/Web/UI/WebControls/TEditCommandColumn.php
+++ b/framework/Web/UI/WebControls/TEditCommandColumn.php
@@ -208,7 +208,6 @@ class TEditCommandColumn extends TDataGridColumn
*/
public function initializeCell($cell,$columnIndex,$itemType)
{
- parent::initializeCell($cell,$columnIndex,$itemType);
if($itemType===TListItemType::Item || $itemType===TListItemType::AlternatingItem || $itemType===TListItemType::SelectedItem)
{
$button=$this->createButton('Edit',$this->getEditText(),false,'');
@@ -226,6 +225,8 @@ class TEditCommandColumn extends TDataGridColumn
$controls->add($button);
$cell->registerObject('CancelButton',$button);
}
+ else
+ parent::initializeCell($cell,$columnIndex,$itemType);
}
/**