Class \Prado\Web\UI\WebControls\TBaseDataList
TBaseDataList is the base class for data listing controls, including TDataList and TDataGrid.
The key field in the data source is specified by \Prado\Web\UI\WebControls\setKeyField, while \Prado\Web\UI\WebControls\getKeyValues stores the key values of each record in a data listing control. You may use the list item index to obtain the corresponding database key value.
TBaseDataList also implements a few properties used for presentation based on tabular layout. The \Prado\Web\UI\WebControls\setCaption, whose alignment is specified via \Prado\Web\UI\WebControls\setCaptionAlign, is rendered as the table caption. The table cellpadding and cellspacing are specified by \Prado\Web\UI\WebControls\setCellPadding and \Prado\Web\UI\WebControls\setCellSpacing properties, respectively. The \Prado\Web\UI\WebControls\setGridLines specifies how the table should display its borders, and the horizontal alignment of the table content can be specified via \Prado\Web\UI\WebControls\setHorizontalAlign.
Class hierarchy
- \Prado\Web\UI\WebControls\TBaseDataList
- \Prado\Web\UI\WebControls\TDataBoundControl
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
deprecated
|
|
public
deprecated
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
onSelectedIndexChanged(mixed $param) : mixed
Raises OnSelectedIndexChanged event.
This method is invoked when a different item is selected in a data listing control between posts to the server. |
public
deprecated
|
|
public
deprecated
|
|
public
|
|
public
|
|
public
|
|
protected
|
createStyle() : TTableStyle
Creates a style object for the control.
This method creates a TTableStyle to be used by the data list control. |
protected
|
getDataFieldValue(mixed $data, mixed $field) : mixed
Returns the value of the data at the specified field.
If data is an array, TMap or TList, the value will be returned at the index of the specified field. If the data is a component with a property named as the field name, the property value will be returned. Otherwise, an exception will be raised. |