
The DataGrid enables a hierarchical arrangement of rows and columns so that specific hierarchy levels can be hidden or displayed.
For example, to display a CInputFieldas a popin, you can expand a hierarchy tree.
The properties relevant for displaying the hierarchy are available in the DataGridCell. The DataGridCell has event onHierarchyChange, which is triggered when a cell is selected for which a hierarchyState is defined.
To insert and delete data in two-dimensional context nodes, the following service operations are provided:
node->insert_columns( from_x = from_x num_cols = num_cols ). node->remove_columns( from_x = from_x num_cols = num_cols ). node->insert_rows( from_y = from_y num_rows = num_rows ). node->remove_rows( from_y = from_y num_rows = num_rows ).
The data does not have to be reloaded by the application.
To react to onHierarchyChange events in your application, follow the steps below:
You can find an example in component WDR_TEST_DATA_GRID in view TC_HIERARCHY.