DataGridSegmentCol

Use

With DataGridSegmentCol you define the properties that relate to all segments within a segment column (e.g. width of the segments). With property columnDataSource you define the number and proprties of the columns within a segment (e.g. column width). You use aggregation DataGridSegmentCol to insert SEGMENT_COLS into a DataGrid. The number of DataGridSegmentCols defines how many segments are arranged next to each other.

Implementation Details

Runtime class:

CL_WD_DATA_GRID_SEGMENT_COL

Properties in View Designer

Name

Type

Initial Value

Bindable

id

STRING

(automatic)

No

columnDataSource

Context-Knoten

Mandatory

columnType WDUI_DATA_GRID_COLUMN_TYPE standard Yes

columnWidth

F

Yes

columnWidthUnit

WDUI_CSS_UNIT

px

No

firstVisibleColIndex

I

1

Yes

segmentWidth

STRING

200PX

Yes

segmentWidthMode

WDUI_DG_SEGMENT_SIZE_MODE

scrollbar

Yes

Dynamic Programming

For dynamic programming, the same properties, events, and aggregations as in the View Designer are available. But note that the spelling format and use of upper/lower case is different.

View Designer Name

Runtime Name

Type

columnDataSource

COLUMN_DATA_SOURCE

OBJECT

columnType COLUMN_TYPE WDUI_DATA_GRID_COLUMN_TYPE
columnType: header CL_WD_DATA_GRID_SEGMENT_COL=>E_COLUMN_TYPE-HEADER
columnType: standard CL_WD_DATA_GRID_SEGMENT_COL=>E_COLUMN_TYPE-STANDARD

columnWidth

COLUMN_WIDTH

F

columnWidthUnit

COLUMN_WIDTH_UNIT

WDUI_CSS_UNIT

columnWidthUnit: em

CL_WD_DATA_GRID_SEGMENT_COL=>E_COLUMN_WIDTH_UNIT-EM

columnWidthUnit: ex

CL_WD_DATA_GRID_SEGMENT_COL=>E_COLUMN_WIDTH_UNIT-E X

columnWidthUnit: %

CL_WD_DATA_GRID_SEGMENT_COL=>E_COLUMN_WIDTH_UNIT-PERCENT

columnWidthUnit: px

CL_WD_DATA_GRID_SEGMENT_COL=>E_COLUMN_WIDTH_UNIT-PX

firstVisibleColIndex

FIRST_VISIBLE_COL_INDEX

I

segmentWidth

SEGMENT_WIDTH

STRING

segmentWidthMode

SEGMENT_WIDTH_MODE

WDUI_DG_SEGMENT_SIZE_MODE

segmentWidthMode: scrollbar

CL_WD_DATA_GRID_SEGMENT_COL=>E_SEGMENT_WIDTH_MODE-SCROLLBAR

segmentWidthMode: sumOfChildElements

CL_WD_DATA_GRID_SEGMENT_COL=>E_SEGMENT_WIDTH_MODE-SUM_OF_CHILD_ELEMENTS