![]() | ![]() |
GridColumn Class [PHP]
Summary
| Properties | Description | |
![]() | Aggregate | Get or set the aggregation function. |
![]() | Align | Get or set alignment of column's text |
![]() | AllowExporting | Get or set whether column will be exported. |
![]() | AllowFiltering | Get or set whether filtering section is show and allow user to filter on this column. |
![]() | AllowGrouping | Get or set whether column is able to group by drag and drop. |
![]() | AllowResizing | Get or set whether user can resize the column. |
![]() | AllowSorting | Get or set whether grid allow user to sort this column. |
![]() | CssClass | Get or set the css class for column. |
![]() | DataField | Get or set the database field name that the column associates with. |
![]() | DefaultValue | Get or set the default value. |
![]() | Filter | Get or set filtering condition for column. |
![]() | FilterOptions | Get or set default filter options for the column. |
![]() | FooterStyle | Get or set style of column's footer. |
![]() | FooterText | Get or set text of column's footer. |
![]() | HeaderStyle | Get or set style of header. |
![]() | HeaderText | Get or set the text of header. |
![]() | ItemStyle | Get or set style of data cell in column. |
![]() | NullDisplayText | Get or set the text display when data is null. |
![]() | ReadOnly | Get or set whether the column is readonly. |
![]() | Sort | Get or set the sorting for the column. |
![]() | TableView | Get the tableview instance which contains this column. |
![]() | Valign | Get or set vertical alignment of column's text |
![]() | Visible | Get or set whether the column is visible. |
![]() | Width | Get or set width of the column. |
![]() | Wrap | Get or set whether the column's text is wrap. |
| Methods | Description | |
![]() | AddValidator | Add validator to column. |
![]() | FormEditRender | Render cell in form edit mode. |
![]() | GetEditValue | Return the updated value. |
![]() | GetFilterValue | Return the filtering value. |
![]() | GetUniqueID | Return the column's unique ID which is assigned by KoolGrid. |
![]() | InlineEditRender | Render cell in inline edit mode. |
![]() | Render | Render data cell. |
![]() | RenderFilter | Render filtering section of column. |
![]() | RenderFooter | Render footer of column |
![]() | RenderHeader | Render header of column |
Properties Detail
AggregateTop
string Aggregate
Get or set the aggregation function. The result of column's aggregation will be added to footer text.
Supported from version: 1.4.0.0
AlignTop
string Align
Get or set alignment of column's text
Default value : "left"
Allowed values :
- "left" : Colum's text aligns in left side
- "center" : Colum's text aligns in center
- "right" : Colum's text aligns in right side
Supported from version: 1.0.0.0
AllowExportingTop
bool AllowExporting
Get or set whether column will be exported.
Supported from version: 2.0.0.0
AllowFilteringTop
bool AllowFiltering
Get or set whether filtering section is show and allow user to filter on this column.
Supported from version: 1.0.0.0
AllowGroupingTop
bool AllowGrouping
Get or set whether column is able to group by drag and drop.
Supported from version: 2.0.0.0
AllowResizingTop
bool AllowResizing
Get or set whether user can resize the column.
Supported from version: 1.0.0.0
AllowSortingTop
bool AllowSorting
Get or set whether grid allow user to sort this column.
Supported from version: 1.0.0.0
DataFieldTop
string DataField
Get or set the database field name that the column associates with.
Supported from version: 1.0.0.0
DefaultValueTop
object DefaultValue
Get or set the default value. This value will be shown as starting value when users do insert or edit.
Supported from version: 3.0.0.0
FilterOptionsTop
array FilterOptions
Get or set default filter options for the column.
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
ItemStyleTop
Style ItemStyle
Get or set style of data cell in column.
Supported from version: 1.0.0.0
NullDisplayTextTop
string NullDisplayText
Get or set the text display when data is null.
Supported from version: 3.0.0.0
SortTop
int Sort
Get or set the sorting for the column.
Default value : 0
Allowed values :
- 0 : No sorting
- -1 : Sort desc
- 1 : Sort asc
Supported from version: 1.0.0.0
TableViewTop
GridTableView TableView
Get the tableview instance which contains this row. Note: This property is only available after grid has been processed.
Supported from version: 1.6.0.0
ValignTop
string Valign
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
WidthTop
string Width
Get or set width of the column. The width except both px value and % value.
Supported from version: 1.0.0.0
Methods Detail
AddValidatorTop
string AddValidator(GridValidator $validator)
Add validator to column. The validator will make sure that input from user is valid before performing any data operation. More information of grid validator, please have a look at Validators section.
Supported from version: 1.3.0.0
FormEditRenderTop
string FormEditRender(GridRow $row)
Render cell in form edit mode.
Supported from version: 1.0.0.0
GetFilterValueTop
string GetFilterValue()
Return the filtering value.
Supported from version: 1.0.0.0
GetUniqueIDTop
string GetUniqueID()
Return the column's unique ID which is assigned by KoolGrid.
Supported from version: 2.3.0.0
InlineEditRenderTop
string InlineEditRender(GridRow $row)
Render cell in inline edit mode.
Supported from version: 1.0.0.0
RenderFilterTop
string RenderFilter(GridRow $row)
Render filtering section of column.
Supported from version: 1.0.0.0
RenderHeaderTop
string RenderHeader(GridRow $row)
Render header of column
Supported from version: 1.0.0.0
![]() | ![]() |



