GridLayout Properties

Properties in View Designer

  • cellPadding

    Interval of the UI element to the grid cell edge for all cells of the GridLayout.

  • cellSpacing

    Interval between the individual grid cells for all cells of the GridLayout.

  • colCount

    Number of grid columns

  • layoutFixed

    Specifies whether the sizes of the GridLayout cells are fixed or whether they can be expanded by their content.

    If the property is not set (ABAP_FALSE), the GridLayout cells are always big enough that their whole content is visible. If the selected size of the GridLayout cell (width and height of the GridData) is smaller than the size of the content, the content expands the cell size.

    If the property is set (ABAP_TRUE), the width of a GridLayout cell (property width of the GridData) is retained when it is rendered even if a smaller size than the width of the content was selected. As in FormLayout, content that is bigger than the surrounding GridLayout cell is truncated. Provided the browser allows, an ellipsis (...) is displayed (for example, Label, TextView, Caption).

    For more information, see Truncation of Contents in FormLayouts.

    In some browsers and rendering modes the height (property height of GridData) is retained and the content is truncated. But since this is not always the case, you should not use property layoutFixed for the height.

  • legendId

    ID of the assigned Legend.

  • stretchedHorizontally

    Specifies whether or not the UI elements match the container size of the horizontal alignment.

  • stretchedVertically

    Specifies whether or not the UI elements match the container size of the vertical alignment.

The following diagram illustrates how the GridLayout properties work: