summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/THyperLinkColumn.php
diff options
context:
space:
mode:
authorxue <>2006-08-27 14:45:57 +0000
committerxue <>2006-08-27 14:45:57 +0000
commit304427074ddf629fd2708b23a3fe0cd0122c05a8 (patch)
tree49e86b72451444cb632d38b82ab4e6399ff156ec /framework/Web/UI/WebControls/THyperLinkColumn.php
parent17f7daf67672f2d2252d9199451fe873d61c2c7a (diff)
Cells in TDataGrid rows can now be accessed via the corresponding column IDs.
Input controls in some datagrid columns can now be accessed in a named fashion.
Diffstat (limited to 'framework/Web/UI/WebControls/THyperLinkColumn.php')
-rw-r--r--framework/Web/UI/WebControls/THyperLinkColumn.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/THyperLinkColumn.php b/framework/Web/UI/WebControls/THyperLinkColumn.php
index 9fc1e3d2..b8dbb607 100644
--- a/framework/Web/UI/WebControls/THyperLinkColumn.php
+++ b/framework/Web/UI/WebControls/THyperLinkColumn.php
@@ -36,6 +36,14 @@ Prado::using('System.Web.UI.WebControls.THyperLink');
* The same rule applies to {@link setNavigateUrl NavigateUrl} and
* {@link setDataNavigateUrlField DataNavigateUrlField} properties.
*
+ * The hyperlinks in the column can be accessed by one of the following two methods:
+ * <code>
+ * $datagridItem->HyperLinkColumnID->HyperLink
+ * $datagridItem->HyperLinkColumnID->Controls[0]
+ * </code>
+ * The second method is possible because the hyperlink control created within the
+ * datagrid cell is the first child.
+ *
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Revision: $ $Date: $
* @package System.Web.UI.WebControls
@@ -178,6 +186,7 @@ class THyperLinkColumn extends TDataGridColumn
if($this->getDataTextField()!=='' || $this->getDataNavigateUrlField()!=='')
$link->attachEventHandler('OnDataBinding',array($this,'dataBindColumn'));
$cell->getControls()->add($link);
+ $cell->registerObject('HyperLink',$link);
}
}