diff options
author | xue <> | 2007-02-05 21:55:51 +0000 |
---|---|---|
committer | xue <> | 2007-02-05 21:55:51 +0000 |
commit | 81b323cf3d27949a5c78d44bd016044be3197b6c (patch) | |
tree | 73b3cb8f214b96237812e33ed4f1b0637172ae53 /framework/Web/UI/WebControls/THyperLinkColumn.php | |
parent | 0aaa8b5ef02479653c0a532d9249b423ef34c7ca (diff) |
Added renderer feature to TDataGrid.
Diffstat (limited to 'framework/Web/UI/WebControls/THyperLinkColumn.php')
-rw-r--r-- | framework/Web/UI/WebControls/THyperLinkColumn.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/THyperLinkColumn.php b/framework/Web/UI/WebControls/THyperLinkColumn.php index 9b20bbfc..f0f0b765 100644 --- a/framework/Web/UI/WebControls/THyperLinkColumn.php +++ b/framework/Web/UI/WebControls/THyperLinkColumn.php @@ -176,7 +176,6 @@ class THyperLinkColumn extends TDataGridColumn */
public function initializeCell($cell,$columnIndex,$itemType)
{
- parent::initializeCell($cell,$columnIndex,$itemType);
if($itemType===TListItemType::Item || $itemType===TListItemType::AlternatingItem || $itemType===TListItemType::SelectedItem || $itemType===TListItemType::EditItem)
{
$link=new THyperLink;
@@ -188,6 +187,8 @@ class THyperLinkColumn extends TDataGridColumn $cell->getControls()->add($link);
$cell->registerObject('HyperLink',$link);
}
+ else
+ parent::initializeCell($cell,$columnIndex,$itemType);
}
/**
@@ -198,7 +199,7 @@ class THyperLinkColumn extends TDataGridColumn public function dataBindColumn($sender,$param)
{
$item=$sender->getNamingContainer();
- $data=$item->getDataItem();
+ $data=$item->getData();
if(($field=$this->getDataTextField())!=='')
{
$value=$this->getDataFieldValue($data,$field);
|