## Class TDataGrid

Description

Implements interfaces:

- INamingContainer

TDataGrid class

TDataGrid represents a data bound and updatable grid control.

To populate data into the datagrid, sets its DataSource to a tabular data source and call dataBind(). Each row of data will be represented by an item in the Items collection of the datagrid.

An item can be at one of three states: browsing, selected and edit. The state determines how the item will be displayed. For example, if an item is in edit state, it may be displayed as a table row with input text boxes if the columns are of type TBoundColumn; and if in browsing state, they are displayed as static text.

To change the state of an item, set EditItemIndex or SelectedItemIndex property.

A datagrid is specified with a list of columns. Each column specifies how the corresponding table column will be displayed. For example, the header/footer text of that column, the cells in that column, and so on. The following column types are currently provided by the framework,

- TBoundColumn, associated with a specific field in datasource and displays the corresponding data.
- TEditCommandColumn, displaying edit/update/cancel command buttons
- TButtonColumn, displaying generic command buttons that may be bound to specific field in datasource.
- THyperLinkColumn, displaying a hyperlink that may be bound to specific field in datasource.
- TCheckBoxColumn, displaying a checkbox that may be bound to specific field in datasource.
- TTemplateColumn, displaying content based on templates.

There are three ways to specify columns for a datagrid.

- Automatically generated based on data source. By setting AutoGenerateColumns to true, a list of columns will be automatically generated based on the schema of the data source. Each column corresponds to a column of the data.
- Specified in template. For example,

           <com:TDataGrid ...>
              <com:TBoundColumn .../>
              <com:TEditCommandColumn .../>
           </com:TDataGrid>

- Manually created in code. Columns can be manipulated via the setColumns property of the datagrid. For example,

          $column=new TBoundColumn;
          $datagrid->Columns[]=$column;

Note, automatically generated columns cannot be accessed via the Columns property.

TDataGrid supports sorting. If the AllowSorting is set to true, a column with nonempty setSortExpression will have its header text displayed as a clickable link button. Clicking on the link button will raise OnSortCommand event. You can respond to this event, sort the data source according to the event parameter, and then invoke databind() on the datagrid to show to end users the sorted data.

TDataGrid supports paging. If the AllowPaging is set to true, a pager will be displayed on top and/or bottom of the table. How the pager will be displayed is determined by the PagerStyle property. Clicking on a pager button will raise an OnPageIndexChanged event. You can respond to this event, specify the page to be displayed by setting CurrentPageIndex</b> property, and then invoke databind() on the datagrid to show to end users a new page of data.

TDataGrid supports two kinds of paging. The first one is based on the number of data items in datasource. The number of pages PageCount is calculated based the item number and the PageSize property. The datagrid will manage which section of the data source to be displayed based on the CurrentPageIndex property. The second approach calculates the page number based on the VirtualItemCount property and the PageSize property. The datagrid will always display from the beginning of the datasource up to the number of PageSize data items. This approach is especially useful when the datasource may contain too many data items to be managed by the datagrid efficiently.

When the datagrid contains a button control that raises an onCommand event, the event will be bubbled up to the datagrid control. If the event's command name is recognizable by the datagrid control, a corresponding item event will be raised. The following item events will be raised upon a specific command:

- OnEditCommand, if CommandName=edit
- OnCancelCommand, if CommandName=cancel
- OnSelectCommand, if CommandName=select
- OnDeleteCommand, if CommandName=delete
- OnUpdateCommand, if CommandName=update
- onPageIndexChanged, if CommandName=page
- OnSortCommand, if CommandName=sort

Note, an OnItemCommand event is raised in addition to the above specific command events.

TDataGrid also raises an OnItemCreated event for every newly created datagrid item. You can respond to this event to customize the content or style of the newly created item.

- since: 3.0
- version: $Revision: $ $Date: $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /Web/UI/WebControls/TDataGrid.php (line 136)

    TComponent
       |
       --TApplicationComponent
          |
          --TControl
             |
             --TWebControl
                |
                --TDataBoundControl
                   |
                   --TBaseDataList
                      |
                      --TDataGrid

Class Constant Summary
CMD_CANCEL = 'Cancel'
CMD_DELETE = 'Delete'
CMD_EDIT = 'Edit'
CMD_PAGE = 'Page'
CMD_PAGE_NEXT = 'Next'
CMD_PAGE_PREV = 'Previous'
CMD_SELECT = 'Select'
CMD_SORT = 'Sort'
CMD_UPDATE = 'Update'
IT_ALTERNATINGITEM = 'AlternatingItem'
IT_EDITITEM = 'EditItem'
IT_FOOTER = 'Footer'
IT_HEADER = 'Header'
IT_ITEM = 'Item'
IT_PAGER = 'Pager'
IT_SELECTEDITEM = 'SelectedItem'
IT_SEPARATOR = 'Separator'
Method Summary
void addParsedObject (mixed $object)
void applyItemStyles ()
void buildNextPrevPager (TDataGridPager $pager, TPagedDataSource $dataSource)
void buildNumericPager (TDataGridPager $pager, TPagedDataSource $dataSource)
void buildPager (TDataGridPager $pager, TPagedDataSource $dataSource)
TDataGridColumnCollection createAutoColumns (TPagedDataSource $dataSource)
TDataGridItem createItem (integer $itemIndex, string $dataSourceIndex, mixed $itemType)
mixed createPagerButton (string $buttonType, boolean $enabled)
TTableStyle createStyle ()
boolean getAllowCustomPaging ()
boolean getAllowPaging ()
boolean getAllowSorting ()
TTableItemStyle getAlternatingItemStyle ()
TDataGridColumnCollection getAutoColumns ()
boolean getAutoGenerateColumns ()
string getBackImageUrl ()
TDataGridPager getBottomPager ()
TDataGridColumnCollection getColumns ()
integer getCurrentPageIndex ()
TDataGridItem getEditItem ()
integer getEditItemIndex ()
TTableItemStyle getEditItemStyle ()
TDataGridItem getFooter ()
TTableItemStyle getFooterStyle ()
TDataGridItem getHeader ()
TTableItemStyle getHeaderStyle ()
TDataGridItemCollection getItems ()
TTableItemStyle getItemStyle ()
integer getPageCount ()
TDataGridPagerStyle getPagerStyle ()
integer getPageSize ()
TDataGridItem getSelectedItem ()
integer getSelectedItemIndex ()
TTableItemStyle getSelectedItemStyle ()
boolean getShowFooter ()
boolean getShowHeader ()
string getTagName ()
TDataGridPager getTopPager ()
integer getVirtualItemCount ()
void initializeItem (TDataGrid $item, TDataGridColumnCollection $columns)
void loadState ()
boolean onBubbleEvent (TControl $sender, TEventParameter $param)
void onCancelCommand (TDataGridCommandEventParameter $param)
void onDeleteCommand (TDataGridCommandEventParameter $param)
void onEditCommand (TDataGridCommandEventParameter $param)
void onItemCommand (TDataGridCommandEventParameter $param)
void onItemCreated (TDataGridItemEventParameter $param)
void onItemDataBound (TDataGridItemEventParameter $param)
void onPageIndexChanged (TDataGridPageChangedEventParameter $param)
void onPagerCreated (TDataGridPagerEventParameter $param)
void onSortCommand (TDataGridSortCommandEventParameter $param)
void onUpdateCommand (TDataGridCommandEventParameter $param)
void performDataBinding (Traversable $data)
void render (THtmlWriter $writer)
void reset ()
void restoreGridFromViewState ()
void saveState ()
void setAllowCustomPaging (boolean $value)
void setAllowPaging (boolean $value)
void setAllowSorting (boolean $value)
void setAutoGenerateColumns (boolean $value)
void setBackImageUrl (string $value)
void setCurrentPageIndex (integer $value)
void setEditItemIndex (integer $value)
void setPageSize (integer $value)
void setSelectedItemIndex (integer $value)
void setShowFooter (boolean $value)
void setShowHeader (boolean $value)
void setVirtualItemCount (integer $value)
Methods
addParsedObject (line 203)

Adds objects parsed in template to datagrid.

Only datagrid columns are added into Columns collection.

- access: public

void addParsedObject (mixed $object)

- mixed $object: object parsed in template

Redefinition of:

TBaseDataList::addParsedObject()
  No body content should be added to data list control.

applyItemStyles (line 1315)

Applies styles to items, header, footer and separators.

Item styles are applied in a hierarchical way. Style in higher hierarchy will inherit from styles in lower hierarchy. Starting from the lowest hierarchy, the item styles include item's own style, ItemStyle, AlternatingItemStyle, SelectedItemStyle, and EditItemStyle. Therefore, if background color is set as red in ItemStyle, EditItemStyle will also have red background color unless it is set to a different value explicitly.

- access: protected

void applyItemStyles ()
buildNextPrevPager (line 1158)

Builds a next-prev pager

- access: protected

void buildNextPrevPager (TDataGridPager $pager, TPagedDataSource $dataSource)

- TDataGridPager $pager: the container for the pager
- TPagedDataSource $dataSource: data source bound to the datagrid

buildNumericPager (line 1201)

Builds a numeric pager

- access: protected

void buildNumericPager (TDataGridPager $pager, TPagedDataSource $dataSource)

- TDataGridPager $pager: the container for the pager
- TPagedDataSource $dataSource: data source bound to the datagrid

buildPager (line 1119)

Builds the pager content based on pager style.

- access: protected

void buildPager (TDataGridPager $pager, TPagedDataSource $dataSource)

- TDataGridPager $pager: the container for the pager
- TPagedDataSource $dataSource: data source bound to the datagrid

createAutoColumns (line 1273)

Automatically generates datagrid columns based on datasource schema

- access: protected

TDataGridColumnCollection createAutoColumns (TPagedDataSource $dataSource)

- TPagedDataSource $dataSource: data source bound to the datagrid

createItem (line 1056)

Creates a datagrid item instance based on the item type and index.

- return: created data list item
- access: protected

TDataGridItem createItem (integer $itemIndex, string $dataSourceIndex, mixed $itemType)

- integer $itemIndex: zero-based item index
- string $dataSourceIndex: item type, may be self::IT_HEADER, self::IT_FOOTER, self::IT_ITEM, self::IT_SEPARATOR, self::IT_ALTERNATINGITEM, self::IT_SELECTEDITEM, self::IT_EDITITEM.

createPagerButton (line 1138)

Creates a pager button.

- return: the button instance
- access: protected

mixed createPagerButton (string $buttonType, boolean $enabled)

- string $buttonType: button type, LinkButton or PushButton
- boolean $enabled: whether the button should be enabled

createStyle (line 244)

Creates a style object for the control.

This method creates a TTableStyle to be used by datagrid.

- return: control style to be used
- access: protected

TTableStyle createStyle ()

Redefinition of:

TBaseDataList::createStyle()
  Creates a style object for the control.

getAllowCustomPaging (line 491)

- return: whether the custom paging is enabled. Defaults to false.
- access: public

boolean getAllowCustomPaging ()
getAllowPaging (line 507)

- return: whether paging is enabled. Defaults to false.
- access: public

boolean getAllowPaging ()
getAllowSorting (line 515)

- return: whether sorting is enabled. Defaults to false.
- access: public

boolean getAllowSorting ()
getAlternatingItemStyle (line 284)

- return: the style for each alternating item
- access: public

TTableItemStyle getAlternatingItemStyle ()
getAutoColumns (line 222)

- return: automatically specified datagrid columns
- access: public

TDataGridColumnCollection getAutoColumns ()
getAutoGenerateColumns (line 539)

- return: whether datagrid columns should be automatically generated. Defaults to true.
- access: public

boolean getAutoGenerateColumns ()
getBackImageUrl (line 255)

- return: the URL of the background image for the datagrid
- access: public

string getBackImageUrl ()
getBottomPager (line 386)

- return: the pager displayed at the bottom of datagrid. It could be null if paging is disabled.
- access: public

TDataGridPager getBottomPager ()
getColumns (line 212)

- return: manually specified datagrid columns
- access: public

TDataGridColumnCollection getColumns ()
getCurrentPageIndex (line 555)

- return: the zero-based index of the current page. Defaults to 0.
- access: public

integer getCurrentPageIndex ()
getEditItem (line 447)

- return: the edit item
- access: public

TDataGridItem getEditItem ()
getEditItemIndex (line 461)

- return: the zero-based index of the edit item in Items. A value -1 means no item is in edit mode.
- access: public

integer getEditItemIndex ()
getEditItemStyle (line 310)

- return: the style for edit item
- access: public

TTableItemStyle getEditItemStyle ()
getFooter (line 370)

- return: the footer item
- access: public

TDataGridItem getFooter ()
getFooterStyle (line 336)

- return: the style for footer
- access: public

TTableItemStyle getFooterStyle ()
getHeader (line 362)

- return: the header item
- access: public

TDataGridItem getHeader ()
getHeaderStyle (line 323)

- return: the style for header
- access: public

TTableItemStyle getHeaderStyle ()
getItems (line 232)

- return: datagrid item collection
- access: public

TDataGridItemCollection getItems ()
getItemStyle (line 271)

- return: the style for every item
- access: public

TTableItemStyle getItemStyle ()
getPageCount (line 593)

- return: number of pages of items available
- access: public

integer getPageCount ()
getPagerStyle (line 349)

- return: the style for pager
- access: public

TDataGridPagerStyle getPagerStyle ()
getPageSize (line 574)

- return: the number of rows displayed each page. Defaults to 10.
- access: public

integer getPageSize ()
getSelectedItem (line 394)

- return: the selected item, null if no item is selected.
- access: public

TDataGridItem getSelectedItem ()
getSelectedItemIndex (line 408)

- return: the zero-based index of the selected item in Items. A value -1 means no item selected.
- access: public

integer getSelectedItemIndex ()
getSelectedItemStyle (line 297)

- return: the style for selected item
- access: public

TTableItemStyle getSelectedItemStyle ()
getShowFooter (line 639)

- return: whether the footer should be displayed. Defaults to false.
- access: public

boolean getShowFooter ()
getShowHeader (line 623)

- return: whether the header should be displayed. Defaults to true.
- access: public

boolean getShowHeader ()
getTagName (line 193)

- return: tag name (table) of the datagrid
- access: protected

string getTagName ()

Redefinition of:

TWebControl::getTagName()
  Returns the tag name used for this control.

getTopPager (line 378)

- return: the pager displayed at the top of datagrid. It could be null if paging is disabled.
- access: public

TDataGridPager getTopPager ()
getVirtualItemCount (line 604)

- return: virtual number of items in the grid. Defaults to 0, meaning not set.
- access: public

integer getVirtualItemCount ()
initializeItem (line 1088)

Initializes a datagrid item and cells inside it

- access: protected

void initializeItem (TDataGrid $item, TDataGridColumnCollection $columns)

- TDataGrid $item: datagrid item to be initialized
- TDataGridColumnCollection $columns: datagrid columns to be used to initialize the cells in the item

loadState (line 864)

Loads item count information from viewstate.

This method is invoked right after control state is loaded.

- access: public

void loadState ()

Redefinition of:

TControl::loadState()
  This method is invoked right after the control has loaded its state.

onBubbleEvent (line 666)

Handles OnBubbleEvent.

This method overrides parent's implementation to handle OnItemCommand event which is bubbled from TDataGridItem child controls. If the event parameter is TDataGridCommandEventParameter and the command name is a recognized one, which includes 'select', 'edit', 'delete', 'update', and 'cancel' (case-insensitive), then a corresponding command event is also raised (such as OnEditCommand). This method should only be used by control developers.

- return: whether the event bubbling should stop here.
- access: public

boolean onBubbleEvent (TControl $sender, TEventParameter $param)

- TControl $sender: the sender of the event
- TEventParameter $param: event parameter

Redefinition of:

TControl::onBubbleEvent()
  This method responds to a bubbled event.

onCancelCommand (line 725)

Raises OnCancelCommand event.

This method is invoked when a button control raises OnCommand event with cancel command name.

- access: public

void onCancelCommand (TDataGridCommandEventParameter $param)

- TDataGridCommandEventParameter $param: event parameter

onDeleteCommand (line 736)

Raises OnDeleteCommand event.

This method is invoked when a button control raises OnCommand event with delete command name.

- access: public

void onDeleteCommand (TDataGridCommandEventParameter $param)

- TDataGridCommandEventParameter $param: event parameter

onEditCommand (line 747)

Raises OnEditCommand event.

This method is invoked when a button control raises OnCommand event with edit command name.

- access: public

void onEditCommand (TDataGridCommandEventParameter $param)

- TDataGridCommandEventParameter $param: event parameter

onItemCommand (line 757)

Raises OnItemCommand event.

This method is invoked when a button control raises OnCommand event.

- access: public

void onItemCommand (TDataGridCommandEventParameter $param)

- TDataGridCommandEventParameter $param: event parameter

onItemCreated (line 790)

Raises OnItemCreated event.

This method is invoked right after a datagrid item is created and before added to page hierarchy.

- access: public

void onItemCreated (TDataGridItemEventParameter $param)

- TDataGridItemEventParameter $param: event parameter

onItemDataBound (line 812)

Raises OnItemDataBound event.

This method is invoked for each datagrid item after it performs databinding.

- access: public

void onItemDataBound (TDataGridItemEventParameter $param)

- TDataGridItemEventParameter $param: event parameter

onPageIndexChanged (line 822)

Raises OnPageIndexChanged event.

This method is invoked when current page is changed.

- access: public

void onPageIndexChanged (TDataGridPageChangedEventParameter $param)

- TDataGridPageChangedEventParameter $param: event parameter

onPagerCreated (line 801)

Raises OnPagerCreated event.

This method is invoked right after a datagrid pager is created and before added to page hierarchy.

- access: public

void onPagerCreated (TDataGridPagerEventParameter $param)

- TDataGridPagerEventParameter $param: event parameter

onSortCommand (line 768)

Raises OnSortCommand event.

This method is invoked when a button control raises OnCommand event with sort command name.

- access: public

void onSortCommand (TDataGridSortCommandEventParameter $param)

- TDataGridSortCommandEventParameter $param: event parameter

onUpdateCommand (line 779)

Raises OnUpdateCommand event.

This method is invoked when a button control raises OnCommand event with update command name.

- access: public

void onUpdateCommand (TDataGridCommandEventParameter $param)

- TDataGridCommandEventParameter $param: event parameter

performDataBinding (line 983)

Performs databinding to populate data list items from data source.

This method is invoked by dataBind(). You may override this function to provide your own way of data population.

- access: protected

void performDataBinding (Traversable $data)

- Traversable $data: the bound data

Redefinition of:

TDataBoundControl::performDataBinding()

render (line 1450)

Renders the datagrid.

- access: public

void render (THtmlWriter $writer)

- THtmlWriter $writer: writer for the rendering purpose

Redefinition of:

TWebControl::render()
  Renders the control.

reset (line 916)

Clears up all items in the datagrid.

- access: public

void reset ()
restoreGridFromViewState (line 929)

Restores datagrid content from viewstate.

- access: protected

void restoreGridFromViewState ()
saveState (line 831)

Saves item count in viewstate.

This method is invoked right before control state is to be saved.

- access: public

void saveState ()

Redefinition of:

TControl::saveState()
  This method is invoked when control state is to be saved.

setAllowCustomPaging (line 499)

- access: public

void setAllowCustomPaging (boolean $value)

- boolean $value: whether the custom paging is enabled

setAllowPaging (line 523)

- access: public

void setAllowPaging (boolean $value)

- boolean $value: whether paging is enabled

setAllowSorting (line 531)

- access: public

void setAllowSorting (boolean $value)

- boolean $value: whether sorting is enabled

setAutoGenerateColumns (line 547)

- access: public

void setAutoGenerateColumns (boolean $value)

- boolean $value: whether datagrid columns should be automatically generated

setBackImageUrl (line 263)

- access: public

void setBackImageUrl (string $value)

- string $value: the URL of the background image for the datagrid

setCurrentPageIndex (line 564)

- access: public
- throws: TInvalidDataValueException if the value is less than 0

void setCurrentPageIndex (integer $value)

- integer $value: the zero-based index of the current page

setEditItemIndex (line 472)

Edits an item by its index in getItems.

Previously editting item will change to normal item state. If the index is less than 0, any existing edit item will be cleared up.

- access: public

void setEditItemIndex (integer $value)

- integer $value: the edit item index

setPageSize (line 583)

- access: public
- throws: TInvalidDataValueException if the value is less than 1

void setPageSize (integer $value)

- integer $value: the number of rows displayed within a page

setSelectedItemIndex (line 420)

Selects an item by its index in getItems.

Previously selected item will be un-selected. If the item to be selected is already in edit mode, it will remain in edit mode. If the index is less than 0, any existing selection will be cleared up.

- access: public

void setSelectedItemIndex (integer $value)

- integer $value: the selected item index

setShowFooter (line 647)

- access: public

void setShowFooter (boolean $value)

- boolean $value: whether the footer should be displayed

setShowHeader (line 631)

- access: public

void setShowHeader (boolean $value)

- boolean $value: whether the header should be displayed

setVirtualItemCount (line 613)

- access: public
- throws: TInvalidDataValueException if the value is less than 0

void setVirtualItemCount (integer $value)

- integer $value: virtual number of items in the grid

#### Inherited Methods

Inherited From TBaseDataList

> TBaseDataList::addParsedObject()
> TBaseDataList::createStyle()
> TBaseDataList::getCaption()
> TBaseDataList::getCaptionAlign()
> TBaseDataList::getCellPadding()
> TBaseDataList::getCellSpacing()
> TBaseDataList::getDataFieldValue()
> TBaseDataList::getDataKeyField()
> TBaseDataList::getDataKeys()
> TBaseDataList::getGridLines()
> TBaseDataList::getHorizontalAlign()
> TBaseDataList::onSelectedIndexChanged()
> TBaseDataList::setCaption()
> TBaseDataList::setCaptionAlign()
> TBaseDataList::setCellPadding()
> TBaseDataList::setCellSpacing()
> TBaseDataList::setDataKeyField()
> TBaseDataList::setGridLines()
> TBaseDataList::setHorizontalAlign()

Inherited From TDataBoundControl

> TDataBoundControl::dataBind()
> TDataBoundControl::dataSourceViewChanged()
> TDataBoundControl::determineDataSource()
> TDataBoundControl::ensureDataBound()
> TDataBoundControl::getData()
> TDataBoundControl::getDataMember()
> TDataBoundControl::getDataSource()
> TDataBoundControl::getDataSourceID()
> TDataBoundControl::getDataSourceView()
> TDataBoundControl::getInitialized()
> TDataBoundControl::getIsDataBound()
> TDataBoundControl::getRequiresDataBinding()
> TDataBoundControl::getSelectParameters()
> TDataBoundControl::getUsingDataSourceID()
> TDataBoundControl::onDataBound()
> TDataBoundControl::onDataSourceChanged()
> TDataBoundControl::onInit()
> TDataBoundControl::onPagePreLoad()
> TDataBoundControl::onPreRender()
> TDataBoundControl::performDataBinding()
> TDataBoundControl::setDataMember()
> TDataBoundControl::setDataSource()
> TDataBoundControl::setDataSourceID()
> TDataBoundControl::setInitialized()
> TDataBoundControl::setIsDataBound()
> TDataBoundControl::setRequiresDataBinding()
> TDataBoundControl::validateDataSource()

Inherited From TWebControl

> TWebControl::addAttributesToRender()
> TWebControl::copyBaseAttributes()
> TWebControl::createStyle()
> TWebControl::getAccessKey()
> TWebControl::getBackColor()
> TWebControl::getBorderColor()
> TWebControl::getBorderStyle()
> TWebControl::getBorderWidth()
> TWebControl::getCssClass()
> TWebControl::getFont()
> TWebControl::getForeColor()
> TWebControl::getHasStyle()
> TWebControl::getHeight()
> TWebControl::getStyle()
> TWebControl::getTabIndex()
> TWebControl::getTagName()
> TWebControl::getToolTip()
> TWebControl::getWidth()
> TWebControl::render()
> TWebControl::renderBeginTag()
> TWebControl::renderContents()
> TWebControl::renderEndTag()
> TWebControl::setAccessKey()
> TWebControl::setBackColor()
> TWebControl::setBorderColor()
> TWebControl::setBorderStyle()
> TWebControl::setBorderWidth()
> TWebControl::setCssClass()
> TWebControl::setForeColor()
> TWebControl::setHeight()
> TWebControl::setStyle()
> TWebControl::setTabIndex()
> TWebControl::setToolTip()
> TWebControl::setWidth()

Inherited From TControl

> TControl::__construct()
> TControl::addedControl()
> TControl::addParsedObject()
> TControl::applyStyleSheetSkin()
> TControl::autoBindProperty()
> TControl::autoDataBindProperties()
> TControl::bindProperty()
> TControl::broadcastEvent()
> TControl::broadcastEventInternal()
> TControl::clearChildState()
> TControl::clearControlState()
> TControl::clearNamingContainer()
> TControl::clearViewState()
> TControl::createChildControls()
> TControl::createControlCollection()
> TControl::createdOnTemplate()
> TControl::dataBind()
> TControl::dataBindChildren()
> TControl::dataBindProperties()
> TControl::ensureChildControls()
> TControl::findControl()
> TControl::findControlsByID()
> TControl::findControlsByType()
> TControl::focus()
> TControl::getAdapter()
> TControl::getAllowChildControls()
> TControl::getAttribute()
> TControl::getAttributes()
> TControl::getChildControlsCreated()
> TControl::getClientID()
> TControl::getControls()
> TControl::getControlStage()
> TControl::getControlState()
> TControl::getEnabled()
> TControl::getEnableTheming()
> TControl::getEnableViewState()
> TControl::getHasAdapter()
> TControl::getHasAttributes()
> TControl::getHasControls()
> TControl::getID()
> TControl::getNamingContainer()
> TControl::getPage()
> TControl::getParent()
> TControl::getRegisteredObject()
> TControl::getSkinID()
> TControl::getSourceTemplateControl()
> TControl::getTemplateControl()
> TControl::getUniqueID()
> TControl::getViewState()
> TControl::getVisible()
> TControl::hasAttribute()
> TControl::initRecursive()
> TControl::isDescendentOf()
> TControl::isObjectRegistered()
> TControl::loadRecursive()
> TControl::loadState()
> TControl::loadStateRecursive()
> TControl::onBubbleEvent()
> TControl::onDataBinding()
> TControl::onInit()
> TControl::onLoad()
> TControl::onPreRender()
> TControl::onUnload()
> TControl::preRenderRecursive()
> TControl::raiseBubbleEvent()
> TControl::registerObject()
> TControl::removeAttribute()
> TControl::removedControl()
> TControl::render()
> TControl::renderChildren()
> TControl::renderControl()
> TControl::saveState()
> TControl::saveStateRecursive()
> TControl::setAdapter()
> TControl::setAttribute()
> TControl::setChildControlsCreated()
> TControl::setControlStage()
> TControl::setControlState()
> TControl::setEnabled()
> TControl::setEnableTheming()
> TControl::setEnableViewState()
> TControl::setID()
> TControl::setPage()
> TControl::setSkinID()
> TControl::setTemplateControl()
> TControl::setViewState()
> TControl::setVisible()
> TControl::traverseChildControls()
> TControl::unbindProperty()
> TControl::unloadRecursive()
> TControl::unregisterObject()
> TControl::__get()

Inherited From TApplicationComponent

> TApplicationComponent::getApplication()
> TApplicationComponent::getRequest()
> TApplicationComponent::getResponse()
> TApplicationComponent::getService()
> TApplicationComponent::getSession()
> TApplicationComponent::getUser()
> TApplicationComponent::publishAsset()
> TApplicationComponent::publishFilePath()

Inherited From TComponent

> TComponent::attachEventHandler()
> TComponent::canGetProperty()
> TComponent::canSetProperty()
> TComponent::detachEventHandler()
> TComponent::evaluateExpression()
> TComponent::evaluateStatements()
> TComponent::getEventHandlers()
> TComponent::getSubProperty()
> TComponent::hasEvent()
> TComponent::hasEventHandler()
> TComponent::hasProperty()
> TComponent::raiseEvent()
> TComponent::setSubProperty()
> TComponent::__get()
> TComponent::__set()

Class Constants
CMD_CANCEL = 'Cancel' (line 157)
CMD_DELETE = 'Delete' (line 156)
CMD_EDIT = 'Edit' (line 154)
CMD_PAGE = 'Page' (line 159)
CMD_PAGE_NEXT = 'Next' (line 160)
CMD_PAGE_PREV = 'Previous' (line 161)
CMD_SELECT = 'Select' (line 153)

Command name that TDataGrid understands.

CMD_SORT = 'Sort' (line 158)
CMD_UPDATE = 'Update' (line 155)
IT_ALTERNATINGITEM = 'AlternatingItem' (line 145)
IT_EDITITEM = 'EditItem' (line 146)
IT_FOOTER = 'Footer' (line 142)
IT_HEADER = 'Header' (line 141)

datagrid item types

IT_ITEM = 'Item' (line 143)
IT_PAGER = 'Pager' (line 148)
IT_SELECTEDITEM = 'SelectedItem' (line 147)
IT_SEPARATOR = 'Separator' (line 144)

#### Inherited Constants

Inherited from TControl

Documentation generated on Mon, 01 May 2006 23:03:09 -0400 by phpDocumentor 1.3.0RC4