cpr.controls.gridpart.GridHeaderBand
Index
Name |
Type |
Description |
cellCount |
Number |
Returns the number of cells in the band. |
Name |
Return Type |
Description |
clearFilter |
|
Remove all filters in the grid header area. |
clearSort |
|
Remove all alignment of grid header area. |
filter |
|
Allows the grid to be filtered in the same way as using the filter in the grid header. |
getCellIndices |
Number[] |
Returns an array of cellIndex. |
getColumn |
GridHeaderColumn |
Returns a specific cell. |
getColumnByColIndex |
GridHeaderColumn[] |
Returns an array of GridColumn that fits this information. |
getColumnByName |
GridDetailColumn[] |
Returns a GridDetailColumn array bound to a specific columnName. |
getControl |
UIControl |
Returns controls that exist in a specific cell. |
getControlAttr |
Object |
If a control exists in a specific cell, it returns the value of that control's specific property. |
getFilter |
{
cellIndex: Number,
values: String[]
}[] |
Returns filter information applied to the grid header area. |
getRowHeight |
Number |
Returns the height of each region by row index. |
getRowHeights |
{
height: Number
}[] |
Returns the row height of the region. |
getSort |
{
cellIndex: Number,
asc: Boolean
}[] |
Returns sort information applied to the header area. |
getSortCondition |
String |
Returns the sort condition applied to the header area. |
setRowHeights |
|
Change the row height of the area. |
sort |
|
Causes the grid to be sorted the same as using sort in the grid header. |
Properties
declaring type
|
GridBand |
type
|
Number |
readonly
|
Returns the number of cells in the band.
|
Methods
Remove all filters in the grid header area.
Remove all alignment of grid header area.
Allows the grid to be filtered in the same way as using the filter in the grid header.
The filter style of the grid header is applied.
It is managed separately from the filter of the dataset.
for values not visible by the grid filter
You cannot change the filter check through the header filter.
name |
type |
description |
filterInfos
|
{
cellIndex: Number,
values: any[]
}[] |
filter conditions.
cellIndex: Header cell index.
values: The values to filter. |
Returns an array of cellIndex.
return
|
Number[] |
cellIndex array. |
Returns a specific cell.
name |
type |
description |
cellIndex
|
Number |
Cell index. |
Returns an array of GridColumn that fits this information.
name |
type |
description |
colIndex
|
Number |
The colIndex of the column to find. |
colSpan
|
Number |
The colSpan of the column you are looking for. |
deprecatedThis function is only available in 19.01.21 detail.
Returns a GridDetailColumn array bound to a specific columnName.
name |
type |
description |
columnName
|
String |
The columnName bound to detail. |
Returns controls that exist in a specific cell.
name |
type |
description |
cellIndex
|
Number |
Cell index. |
return
|
UIControl |
The control that exists at the input cell index. |
If a control exists in a specific cell, it returns the value of that control's specific property.
name |
type |
description |
cellIndex
|
Number |
|
attrName
|
String |
Attribute name. |
return
|
Object |
Property Value. |
Returns filter information applied to the grid header area.
return
|
{
cellIndex: Number,
values: String[]
}[] |
filter information. |
Returns the height of each region by row index.
The unit is px.
name |
type |
description |
rowIndex
|
Number |
Row index. |
return
|
Number |
The height of the input row index. |
Returns the row height of the region.
Row height at design time.
The unit is px.
return
|
{
height: Number
}[] |
Row height array. |
Returns sort information applied to the header area.
return
|
{
cellIndex: Number,
asc: Boolean
}[] |
sort information. |
Returns the sort condition applied to the header area.
return
|
String |
sort condition. |
Change the row height of the area.
name |
type |
description |
heights
|
Number[] |
Set height array. (ex. [30]) |
Causes the grid to be sorted the same as using sort in the grid header.
The alignment style of the grid header is applied.
It is managed separately from the sort of dataset.
name |
type |
description |
sortInfos
|
{
cellIndex: Number,
asc: Boolean,
emptyValueSort?: String
}[] |
sort condition.
cellIndex: Header cell index.
asc: Sort ascending / descending. (true / false)
emptyValueSort: Handle empty values when sorting (emptyString, nullLast) |