Class \Prado\Web\UI\WebControls\THyperLinkColumn
THyperLinkColumn contains a hyperlink for each item in the column. You can set the text and the url of the hyperlink by \Prado\Web\UI\WebControls\setText and \Prado\Web\UI\WebControls\setNavigateUrl properties, respectively. You can also bind the text and url to specific data field in datasource by setting \Prado\Web\UI\WebControls\setDataTextField and \Prado\Web\UI\WebControls\setDataNavigateUrlField. Both can be formatted before rendering according to the \Prado\Web\UI\WebControls\setDataTextFormatString and and \Prado\Web\UI\WebControls\setDataNavigateUrlFormatString properties, respectively. If both \Prado\Web\UI\WebControls\setText and \Prado\Web\UI\WebControls\setDataTextField are present, the latter takes precedence. The same rule applies to \Prado\Web\UI\WebControls\setNavigateUrl and \Prado\Web\UI\WebControls\setDataNavigateUrlField properties.
The hyperlinks in the column can be accessed by one of the following two methods:
$datagridItem->HyperLinkColumnID->HyperLink
$datagridItem->HyperLinkColumnID->Controls[0]
The second method is possible because the hyperlink control created within the datagrid cell is the first child.
Class hierarchy
- \Prado\Web\UI\WebControls\THyperLinkColumn
- \Prado\Web\UI\WebControls\TDataGridColumn
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
|
dataBindColumn(mixed $sender, mixed $param) : mixed
Databinds a cell in the column.
This method is invoked when datagrid performs databinding. It populates the content of the cell with the relevant data from data source. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
initializeCell(TTableCell $cell, int $columnIndex, string $itemType) : mixed
Initializes the specified cell to its initial values.
This method overrides the parent implementation. It creates a hyperlink within the cell. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setTarget(string $value) : mixed
Sets the target window or frame to display the Web page content linked to when the hyperlink is clicked.
|
public
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |