diff options
author | xue <> | 2006-09-04 22:00:25 +0000 |
---|---|---|
committer | xue <> | 2006-09-04 22:00:25 +0000 |
commit | f587496dcba7c7030062b5dfdc7612f3ed89dbf9 (patch) | |
tree | 845e2be5bef86f056c1ac25ac285a92cc2ad56c3 /framework/Web/UI/WebControls/TEditCommandColumn.php | |
parent | 9fe3fc70f1d721790265926fac4dc0f3ad6140bf (diff) |
updated datagrid columns to make use of enumerable list item types.
Diffstat (limited to 'framework/Web/UI/WebControls/TEditCommandColumn.php')
-rw-r--r-- | framework/Web/UI/WebControls/TEditCommandColumn.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TEditCommandColumn.php b/framework/Web/UI/WebControls/TEditCommandColumn.php index 327e03a2..e78982dc 100644 --- a/framework/Web/UI/WebControls/TEditCommandColumn.php +++ b/framework/Web/UI/WebControls/TEditCommandColumn.php @@ -209,13 +209,13 @@ class TEditCommandColumn extends TDataGridColumn public function initializeCell($cell,$columnIndex,$itemType)
{
parent::initializeCell($cell,$columnIndex,$itemType);
- if($itemType===TDataGrid::IT_ITEM || $itemType===TDataGrid::IT_ALTERNATINGITEM || $itemType===TDataGrid::IT_SELECTEDITEM)
+ if($itemType===TListItemType::Item || $itemType===TListItemType::AlternatingItem || $itemType===TListItemType::SelectedItem)
{
$button=$this->createButton('Edit',$this->getEditText(),false,'');
$cell->getControls()->add($button);
$cell->registerObject('EditButton',$button);
}
- else if($itemType===TDataGrid::IT_EDITITEM)
+ else if($itemType===TListItemType::EditItem)
{
$controls=$cell->getControls();
$button=$this->createButton('Update',$this->getUpdateText(),$this->getCausesValidation(),$this->getValidationGroup());
|