$datagridItem->ButtonColumnID->Button
$datagridItem->ButtonColumnID->Controls[0]
The second method is possible because the button control created within the
datagrid cell is the first child.
Datei anzeigen
Open project: pradosoft/prado
Class Usage Examples
Method | Description | |
---|---|---|
dataBindColumn ( $sender, $param ) | Databinds a cell in the column. | |
getButtonType ( ) : |
||
getCausesValidation ( ) : boolean | ||
getCommandName ( ) : string | ||
getDataImageUrlField ( ) : string | ||
getDataImageUrlFormatString ( ) : string | ||
getDataTextField ( ) : string | ||
getDataTextFormatString ( ) : string | ||
getImageUrl ( ) : string | ||
getText ( ) : string | ||
getValidationGroup ( ) : string | ||
initializeCell ( $cell, $columnIndex, $itemType ) | Initializes the specified cell to its initial values. | |
setButtonType ( $value ) | ||
setCausesValidation ( $value ) | ||
setCommandName ( $value ) | Sets the command name associated with the Command event. | |
setDataImageUrlField ( $value ) | ||
setDataImageUrlFormatString ( $value ) | ||
setDataTextField ( $value ) | ||
setDataTextFormatString ( $value ) | ||
setImageUrl ( $value ) | ||
setText ( $value ) | Sets the text caption of the button. | |
setValidationGroup ( $value ) |
public dataBindColumn ( $sender, $param ) |
public getButtonType ( ) : |
||
return | the type of command button. Defaults to TButtonColumnType::LinkButton. |
public getCausesValidation ( ) : boolean | ||
return | boolean | whether postback event trigger by this button will cause input validation, default is true |
public getCommandName ( ) : string | ||
return | string | the command name associated with the OnCommand event. |
public getDataImageUrlField ( ) : string | ||
return | string | the field name from the data source to bind to the button image url |
public getDataImageUrlFormatString ( ) : string | ||
return | string | the formatting string used to control how the button image url will be displayed. |
public getDataTextField ( ) : string | ||
return | string | the field name from the data source to bind to the button caption |
public getDataTextFormatString ( ) : string | ||
return | string | the formatting string used to control how the button caption will be displayed. |
public getImageUrl ( ) : string | ||
return | string | the URL of the image file for image buttons |
public getValidationGroup ( ) : string | ||
return | string | the group of validators which the button causes validation upon postback |
public initializeCell ( $cell, $columnIndex, $itemType ) |
public setCommandName ( $value ) |