$column=new TBoundColumn;
$datagrid->Columns[]=$column;
메소드 | 설명 | |
---|---|---|
addParsedObject ( $object ) | Adds objects parsed in template to datagrid. | |
bubbleEvent ( $sender, $param ) : boolean | This method overrides parent's implementation to handle {@link onItemCommand OnItemCommand} event which is bubbled from {@link TDataGridItem} child controls. | |
getAllowSorting ( ) : boolean | ||
getAlternatingItemStyle ( ) : |
||
getAutoColumns ( ) : |
||
getAutoGenerateColumns ( ) : boolean | ||
getBackImageUrl ( ) : string | ||
getBottomPager ( ) : |
||
getCaption ( ) : string | ||
getCaptionAlign ( ) : |
||
getColumns ( ) : |
||
getEditItem ( ) : |
||
getEditItemIndex ( ) : integer | ||
getEditItemStyle ( ) : |
||
getEmptyTemplate ( ) : Prado\Web\UI\ITemplate | ||
getFooter ( ) : |
||
getFooterStyle ( ) : |
||
getHeader ( ) : |
||
getHeaderStyle ( ) : |
||
getItemCount ( ) : integer | ||
getItemStyle ( ) : |
||
getItems ( ) : TDataGridItemCollection | ||
getPagerStyle ( ) : |
||
getSelectedItem ( ) : |
||
getSelectedItemIndex ( ) : integer | ||
getSelectedItemStyle ( ) : |
||
getShowFooter ( ) : boolean | ||
getShowHeader ( ) : boolean | ||
getTableBodyStyle ( ) : |
||
getTableFootStyle ( ) : |
||
getTableHeadStyle ( ) : |
||
getTopPager ( ) : |
||
loadState ( ) | Loads item count information from viewstate. | |
onCancelCommand ( $param ) | Raises OnCancelCommand event. | |
onDeleteCommand ( $param ) | Raises OnDeleteCommand event. | |
onEditCommand ( $param ) | Raises OnEditCommand event. | |
onItemCommand ( $param ) | Raises OnItemCommand event. | |
onItemCreated ( $param ) | Raises OnItemCreated event. | |
onItemDataBound ( $param ) | Raises OnItemDataBound event. | |
onPageIndexChanged ( $param ) | Raises OnPageIndexChanged event. | |
onPagerCreated ( $param ) | Raises OnPagerCreated event. | |
onSortCommand ( $param ) | Raises OnSortCommand event. | |
onUpdateCommand ( $param ) | Raises OnUpdateCommand event. | |
render ( $writer ) | Renders the datagrid. | |
renderBeginTag ( $writer ) | Renders the openning tag for the datagrid control which will render table caption if present. | |
reset ( ) | Clears up all items in the datagrid. | |
saveState ( ) | Saves item count in viewstate. | |
setAllowSorting ( $value ) | ||
setAutoGenerateColumns ( $value ) | ||
setBackImageUrl ( $value ) | ||
setCaption ( $value ) | ||
setCaptionAlign ( $value ) | ||
setEditItemIndex ( $value ) | Edits an item by its index in {@link getItems Items}. | |
setEmptyTemplate ( $value ) | ||
setSelectedItemIndex ( $value ) | Selects an item by its index in {@link getItems Items}. | |
setShowFooter ( $value ) | ||
setShowHeader ( $value ) |
메소드 | 설명 | |
---|---|---|
applyItemStyles ( ) | Applies styles to items, header, footer and separators. | |
buildNextPrevPager ( $pager ) | Builds a next-prev pager | |
buildNumericPager ( $pager ) | Builds a numeric pager | |
buildPager ( $pager ) | Builds the pager content based on pager style. | |
createAutoColumns ( $dataSource ) : |
Automatically generates datagrid columns based on datasource schema | |
createItem ( $itemIndex, $dataSourceIndex, $itemType ) : |
Creates a datagrid item instance based on the item type and index. | |
createPager ( ) | ||
createPagerButton ( $pager, $buttonType, $enabled, $text, $commandName, $commandParameter ) : mixed | Creates a pager button. | |
createStyle ( ) : |
Creates a style object for the control. | |
getAutoGenerateColumnName ( ) : string | ||
getTagName ( ) : string | ||
initializeItem ( $item, $columns ) | Initializes a datagrid item and cells inside it | |
performDataBinding ( $data ) | Performs databinding to populate datagrid items from data source. | |
renderTable ( $writer ) | Renders the tabular data. | |
restoreGridFromViewState ( ) | Restores datagrid content from viewstate. |
메소드 | 설명 | |
---|---|---|
createItemInternal ( $itemIndex, $dataSourceIndex, $itemType, $dataBind, $dataItem, $columns ) | ||
getCellText ( $cell ) | ||
groupCells ( ) | Merges consecutive cells who have the same text. |
public addParsedObject ( $object ) |
protected applyItemStyles ( ) |
public bubbleEvent ( $sender, $param ) : boolean | ||
리턴 | boolean | whether the event bubbling should stop here. |
protected createAutoColumns ( $dataSource ) : |
||
리턴 |
protected createItem ( $itemIndex, $dataSourceIndex, $itemType ) : |
||
리턴 | created data list item |
protected createPagerButton ( $pager, $buttonType, $enabled, $text, $commandName, $commandParameter ) : mixed | ||
리턴 | mixed | the button instance |
protected createStyle ( ) : |
||
리턴 | control style to be used |
public getAllowSorting ( ) : boolean | ||
리턴 | boolean | whether sorting is enabled. Defaults to false. |
public getAlternatingItemStyle ( ) : |
||
리턴 | the style for each alternating item |
public getAutoColumns ( ) : |
||
리턴 | automatically generated datagrid columns |
protected getAutoGenerateColumnName ( ) : string | ||
리턴 | string | Name of the class used in AutoGenerateColumns mode |
public getAutoGenerateColumns ( ) : boolean | ||
리턴 | boolean | whether datagrid columns should be automatically generated. Defaults to true. |
public getBackImageUrl ( ) : string | ||
리턴 | string | the URL of the background image for the datagrid |
public getBottomPager ( ) : |
||
리턴 | the pager displayed at the bottom of datagrid. It could be null if paging is disabled. |
public getCaptionAlign ( ) : |
||
리턴 | datagrid caption alignment. Defaults to TTableCaptionAlign::NotSet. |
public getColumns ( ) : |
||
리턴 | manually specified datagrid columns |
public getEditItemIndex ( ) : integer | ||
리턴 | integer | the zero-based index of the edit item in {@link getItems Items}. A value -1 means no item is in edit mode. |
public getEditItemStyle ( ) : |
||
리턴 | the style for edit item |
public getEmptyTemplate ( ) : Prado\Web\UI\ITemplate | ||
리턴 | Prado\Web\UI\ITemplate | the template applied when no data is bound to the datagrid |
public getHeaderStyle ( ) : |
||
리턴 | the style for header |
public getItemStyle ( ) : |
||
리턴 | the style for every item |
public getItems ( ) : TDataGridItemCollection | ||
리턴 | TDataGridItemCollection | datagrid item collection |
public getPagerStyle ( ) : |
||
리턴 | the style for pager |
public getSelectedItem ( ) : |
||
리턴 | the selected item, null if no item is selected. |
public getSelectedItemIndex ( ) : integer | ||
리턴 | integer | the zero-based index of the selected item in {@link getItems Items}. A value -1 means no item selected. |
public getSelectedItemStyle ( ) : |
||
리턴 | the style for selected item |
public getShowHeader ( ) : boolean | ||
리턴 | boolean | whether the header should be displayed. Defaults to true. |
public getTableBodyStyle ( ) : |
||
리턴 | the style for tbody element, if any |
public getTableFootStyle ( ) : |
||
리턴 | the style for tfoot element, if any |
public getTableHeadStyle ( ) : |
||
리턴 | the style for thead element, if any |
public getTopPager ( ) : |
||
리턴 | the pager displayed at the top of datagrid. It could be null if paging is disabled. |
protected initializeItem ( $item, $columns ) |
public onCancelCommand ( $param ) |
public onDeleteCommand ( $param ) |
public onEditCommand ( $param ) |
public onItemCommand ( $param ) |
public onItemCreated ( $param ) |
public onItemDataBound ( $param ) |
public onPageIndexChanged ( $param ) |
public onPagerCreated ( $param ) |
public onSortCommand ( $param ) |
public onUpdateCommand ( $param ) |
protected performDataBinding ( $data ) |
public renderBeginTag ( $writer ) |
protected restoreGridFromViewState ( ) |
public saveState ( ) |
public setEditItemIndex ( $value ) |
public setSelectedItemIndex ( $value ) |