![]() | ![]() |
GridTableView Class [PHP]
Summary
| Properties | Description | |
![]() | AllowDeleting | Allow tableview delete data. |
![]() | AllowEditing | Allow tableview edit and update data to datasource. |
![]() | AllowFiltering | When true, all columns in tableview will enable filtering feature. |
![]() | AllowGrouping | When true, all columns in tableview will enable grouping feature. |
![]() | AllowHovering | Allow row highlighted when mouse is over. |
![]() | AllowMultiSelecting | Allow selecting more than one row. |
![]() | AllowResizing | When true, all resizable columns in tableview will enable resizing feature. |
![]() | AllowScrolling | Allow tableview scrollable. |
![]() | AllowSelecting | Allow row selected |
![]() | AllowSorting | When true, all sortable columns in tableview will enable sorting feature. |
![]() | AutoGenerateColumns | When true, grid will generate and add data-driven columns to tableview automatically. |
![]() | AutoGenerateDeleteColumn | When true, grid will add delete command column to tableview automatically. |
![]() | AutoGenerateEditColumn | When true, grid will add edit command column to tableview automatically. |
![]() | AutoGenerateExpandColumn | When true, grid will add GridExpandDetailColumn to the tableview automatically. |
![]() | AutoGenerateRowSelectColumn | When true, grid will add GridRowSelectColumn to tableview automatically. |
![]() | ColumnAlign | Get or set alignment of column's text |
![]() | ColumnValign | Get or set vertical alignment of column's text |
![]() | ColumnWrap | When true, all columns in tableview will be in wrap mode. |
![]() | DataKeyNames | Get or set list of primary keys of the data set. |
![]() | DataSource | Get or set the datasource for tableview. |
![]() | DisableAutoGenerateDataFields | Get or set the list of field names that will not be generated column by KoolGrid. |
![]() | EditSettings | Contain settings for tableview editing data function. |
![]() | FilterOptions | Get or set default filter options for all columns in tableview. |
![]() | FunctionPanel | TableView's function panel settings. |
![]() | Grid | Get the grid object that contain this tableview. |
![]() | GroupPanel | TableView's group panel settings. |
![]() | Height | Get or set height of tableview. |
![]() | InsertSettings | Contain settings for tableview inserting data function. |
![]() | KeepRowStateOnRefresh | Keep row state on refresh. |
![]() | KeepSelectedRecords | When true, tableview will keep selected records persistent againts postback or callback. |
![]() | Pager | Get or set pager object for tableview. |
![]() | PageSize | Get or set the page size for tableview. |
![]() | ParentRow | Get the parent row instance which contains this detail tableview. |
![]() | RowAlternative | When true, it make tableview show alternative color for each row. |
![]() | SelectedKeys | Get the keys of selected rows. |
![]() | ShowFooter | When true, it make footer of tableview visible. |
![]() | ShowFunctionPanel | When true, tableview will show function panel. |
![]() | ShowGroupPanel | When true, tableview will show group panel. |
![]() | ShowHeader | When true, it make header of tableview visible. |
![]() | TableLayout | Get or set layout of the tableview. |
![]() | Width | Get or set detfault width of the tableview. |
| Methods | Description | |
![]() | AddColumn | Add a column to tableview. |
![]() | AddDetailTable | Add a detail table to tableview. |
![]() | AddGroup | Add a group to tableview. |
![]() | AddRelationField | Add relation field between detail table and master table. |
![]() | ExportToCSV | Export the tableview to CSV format. |
![]() | ExportToExcel | Export the tableview to Microsoft Excel format. |
![]() | ExportToPDF | Export the tableview to PDF format. |
![]() | ExportToWord | Export the tableview to Microsoft Word format. |
![]() | GetInstanceColumns | Get all instance columns of tableview after processing. |
![]() | GetInstanceRows | Get all instance rows of tableview after processing. |
![]() | GetParentRow | Return the parent row that contains this tableview. |
![]() | GetUniqueID | Return the tableview's unique ID which is assigned by KoolGrid. |
![]() | Refresh | Force the tableview to refresh. |
Properties Detail
AllowEditingTop
bool AllowEditing
Allow tableview edit and update data to datasource.
Supported from version: 1.0.0.0
AllowFilteringTop
bool AllowFiltering
When true, all columns in tableview will enable filtering feature.
Supported from version: 1.0.0.0
AllowGroupingTop
bool AllowGrouping
When true, all columns in tableview will enable grouping feature.
Supported from version: 2.0.0.0
AllowHoveringTop
bool AllowHovering
Allow row highlighted when mouse is over.
Supported from version: 1.0.0.0
AllowMultiSelectingTop
bool AllowMultiSelecting
Allow selecting more than one row.
Supported from version: 1.0.0.0
AllowResizingTop
bool AllowResizing
When true, all resizable columns in tableview will enable resizing feature.
Supported from version: 1.0.0.0
AllowSortingTop
bool AllowSorting
When true, all sortable columns in tableview will enable sorting feature.
Supported from version: 1.0.0.0
AutoGenerateColumnsTop
bool AutoGenerateColumns
When true, grid will generate and add data-driven columns to tableview automatically.
Supported from version: 1.0.0.0
AutoGenerateDeleteColumnTop
bool AutoGenerateDeleteColumn
When true, grid will add delete command column to tableview automatically.
Supported from version: 1.0.0.0
AutoGenerateEditColumnTop
bool AutoGenerateEditColumn
When true, grid will add edit command column to tableview automatically.
Supported from version: 1.0.0.0
AutoGenerateExpandColumnTop
bool AutoGenerateExpandColumn
When true, grid will add GridExpandDetailColumn to the tableview automatically.
Supported from version: 1.0.0.0
AutoGenerateRowSelectColumnTop
bool AutoGenerateRowSelectColumn
When true, grid will add GridRowSelectColumn to tableview automatically.
Supported from version: 1.0.0.0
ColumnAlignTop
string ColumnAlign
Get or set alignment of column's text
Default value : "left"
Allowed values :
- "left" : Text in column aligns in left side
- "center" : Text in column aligns in center
- "right" : Text in column aligns in right side
Supported from version: 1.0.0.0
ColumnValignTop
string ColumnValign
Get or set vertical alignment of column's text
Default value : "left"
Allowed values :
- "top" : Top alignment
- "middle" : Middle alignment
- "left" : Bottom alignment
Supported from version: 1.0.0.0
ColumnWrapTop
bool ColumnWrap
When true, all columns in tableview will be in wrap mode. The long text will be broken in more than one line.
Supported from version: 1.0.0.0
DataKeyNamesTop
string DataKeyNames
Get or set list of primary keys of the data set. You can input multiple primary key name with comma seperator.
Supported from version: 1.0.0.0
DataSourceTop
string DataSource
Get or set the datasource for tableview.
Supported from version: 1.0.0.0
DisableAutoGenerateDataFieldsTop
string DisableAutoGenerateDataFields
Get or set the list of field names that will not be generated column by KoolGrid. When you set AutoGenerateColumns to true, by default, KooLGrid will build columns for all available fieldnames. With this DisableAutoGenerateDataFields, you can choose the datafields that you do not want to build columns.
Supported from version: 1.0.0.0
EditSettingsTop
EditSettings EditSettings
Contain settings for tableview editing data function. More detail of settings you may have a look at EditSettings class.
Supported from version: 1.0.0.0
FilterOptionsTop
array FilterOptions
Get or set default filter options for all columns in tableview.
Default value : array("No_Filter","Equal","Not_Equal","Greater_Than","Less_Than","Greater_Than_Or_Equal","Less_Than_Or_Equal","Contain","Not_Contain","Start_With","End_With");
Supported from version: 1.0.0.0
FunctionPanelTop
FunctionPanel FunctionPanel
TableView's function panel settings.
Supported from version: 1.0.0.0
GridTop
KoolGrid Grid
Get the grid object that contain this tableview. Note: This property is only available after grid has been processed.
Supported from version: 1.6.0.0
GroupPanelTop
GroupPanel GroupPanel
TableView's group panel settings.
Supported from version: 1.0.0.0
HeightTop
string Height
Get or set height of tableview. The height can only be set with px value.
Supported from version: 1.0.0.0
InsertSettingsTop
InsertSettings InsertSettings
Contain settings for tableview inserting data function. More detail of settings you may have a look at InsertSettings class
Supported from version: 1.0.0.0
KeepRowStateOnRefreshTop
bool KeepRowStateOnRefresh
Keep states of row on refresh such as: selected, sub-tables and so on.
Supported from version: 3.0.0.0
KeepSelectedRecordsTop
bool KeepSelectedRecords
When true, tableview will keep selected records persistent againts postback or callback.
Supported from version: 1.0.0.0
PagerTop
GridPager Pager
Get or set pager object for tableview.
Default value : null
Supported from version: 1.0.0.0
ParentRowTop
GridRow ParentRow
Get the parent row instance which contains this detail tableview. Note: This property is only available after grid has been processed.
Supported from version: 1.6.0.0
RowAlternativeTop
bool RowAlternative
When true, it make tableview show alternative color for each row.
Supported from version: 1.0.0.0
SelectedKeysTop
array SelectedKeys
Get the keys of selected rows. This list will be available after the grid processing. Note: This SelectedKeys requires DataKeyNames to be set.
Supported from version: 1.0.0.0
ShowFunctionPanelTop
bool ShowFunctionPanel
When true, tableview will show function panel.
Supported from version: 1.0.0.0
ShowGroupPanelTop
bool ShowGroupPanel
When true, tableview will show group panel.
Supported from version: 2.0.0.0
ShowHeaderTop
bool ShowHeader
When true, it make header of tableview visible.
Supported from version: 1.0.0.0
TableLayoutTop
string TableLayout
Get or set layout of the tableview.
Default value : "auto"
Allowed values :
- "auto" : Text in column aligns in left side
- "fixed" : Text in column aligns in center
Supported from version: 1.0.0.0
WidthTop
string Width
Get or set detfault width of the tableview. The width can be set with px value of % value.
Supported from version: 1.0.0.0
Methods Detail
AddColumnTop
void AddColumn(GridColumn $column)
Add a column to tableview.
Supported from version: 1.0.0.0
AddDetailTableTop
void AddDetailTable(GridTableView $detail_table, [string $description_template])
Add a detail table to tableview.
Supported from version: 1.0.0.0
AddGroupTop
void AddGroup(GridGroup $group)
Add a group to tableview.
Supported from version: 2.0.0.0
AddRelationFieldTop
void AddRelationField(string $field_of_this_detail_table, string $field_of_master_table)
Add relation field between detail table and master table.
Supported from version: 1.0.0.0
ExportToCSVTop
void ExportToCSV()
Export the tableview to CSV format.
Supported from version: 1.0.0.0
ExportToExcelTop
void ExportToExcel()
Export the tableview to Microsoft Excel format.
Supported from version: 2.0.0.0
ExportToPDFTop
void ExportToPDF()
Export the tableview to PDF format.
Supported from version: 2.0.0.0
ExportToWordTop
void ExportToWord()
Export the tableview to Microsoft Word format.
Supported from version: 2.0.0.0
GetInstanceColumnsTop
array GetInstanceColumns()
Get all instance columns of tableview after processing.
Supported from version: 1.0.0.0
GetInstanceRowsTop
array GetInstanceRows()
Get all instance rows of tableview after processing.
Supported from version: 1.0.0.0
GetParentRowTop
GridRow GetParentRow()
Return the parent row that contains this tableview.
Supported from version: 2.1.0.0
GetUniqueIDTop
string GetUniqueID()
Return the tableview's unique ID which is assigned by KoolGrid.
Supported from version: 2.3.0.0
RefreshTop
void Refresh()
Force the tableview to refresh. The data will be rebound.
Supported from version: 1.6.0.0
![]() | ![]() |



