Interface GridControl

All Superinterfaces:
BackgroundStyleProperties, BorderStyleProperties, ContainerControl, Control, Element, EventOwner, MarginStyleProperties, MessageContainer, java.io.Serializable, TextStyleProperties, WebFormEventOwner

public interface GridControl
extends ContainerControl, BackgroundStyleProperties, BorderStyleProperties, MarginStyleProperties, TextStyleProperties
Grid Control. A Grid Control represents a grid consisting of any number of rows and columns.

Further documentation.

  • Method Details

    • getGridClass

      java.lang.String getGridClass()
      Returns the list of CSS classes applied to the table grid. Use the cssClass property in preference to this property to style a grid.

      Further documentation.

      These classes are configured in the designer using the Advanced Properties button within the Grid Control Styling Assistant.

      Since:
      V4.4
      See Also:
      Control.getCssClass(), setGridClass(String)
    • setGridClass

      void setGridClass​(java.lang.String gridClass)
      Sets one or more CSS classes to be applied to the table grid. Multiple classes are specified by using a space between the class names, as per the HTML class parameter. Use the cssClass property in preference to this property to style a grid.

      Further documentation.

      These classes are configured in the designer using the Advanced Properties button within the Grid Control Styling Assistant.

      Since:
      V4.4
      See Also:
      Control.setCssClass(String)
    • getGridStyle

      java.lang.String getGridStyle()
      Returns the inline CSS style applied to the table grid. Use the style property in preference to this property to style a grid.

      Further documentation.

      This inline style is configured in the designer using the Advanced Properties button within the Grid Control Styling Assistant.

      Since:
      V4.4
      See Also:
      setGridStyle(String), Control.getStyle()
    • setGridStyle

      void setGridStyle​(java.lang.String gridStyle)
      Sets the inline CSS style to be applied to the table grid. Style is entered as for the HTML style parameter.

      Further documentation.

      This inline style is configured in the designer using the Advanced Properties button within the Grid Control Styling Assistant.

      Since:
      V4.4
    • getWidth

      java.lang.String getWidth()
      Grid Control width. See setWidth(String) for details of supported values when setting this property.
      Since:
      V4.4
    • setWidth

      void setWidth​(java.lang.String width)
      Sets the width of the Grid Control.

      Supported values:

      ValueDescription
      A specific valueAs per the CSS width property e.g. 300px
      ChildThe minimum value: this results in the Grid Control being just as wide as it needs to be to accommodate its children.

      The width setting will be ignored if the parent container layout specifies a horizontal cell alignment of fill (this applies to Horizontal Box, Vertical Box and Column layouts).

      Warning: when a specific value is set, any padding, border or margins will be in addition to the specified value and can cause the Grid Control to "break out" of its parent space.

      Examples:

       controls.GRIDCONTROL1.width = "300px";
       controls.GRIDCONTROL1.width = "50%";
       controls.GRIDCONTROL1.setWidth("Child");
       
      Since:
      V4.4
    • getHeight

      java.lang.String getHeight()
      Grid Control height. This is equivalent to the CSS height property, and any valid value for this CSS property can be used when setting a value.
      Since:
      V4.4
      See Also:
      setHeight(String)
    • setHeight

      void setHeight​(java.lang.String height)
      Sets the panel height, and is equivalent to the CSS height property and any valid value for this CSS property can be used. Setting this property to null removes any existing value.

      Examples:

       controls.GRIDCONTROL1.height = "50px";
       controls.GRIDCONTROL1.setHeight("100px");
       
      Since:
      V4.4
    • getCellBorder

      BorderStyleProperties getCellBorder()
      Border properties for each cell.

      Further documentation.

      Since:
      V4.4
    • getColumnWidths

      java.lang.String getColumnWidths()
      A comma separated list of column width percentages in the form 20%,20%,40%,20%.
      Since:
      V4.4
    • setColumnWidths

      void setColumnWidths​(java.lang.String columnWidths)
      Sets the widths for the grid columns. This is specified as a comma separated list of column width percentages in the form 20%,20%,40%,20%, where a width for all columns is required.
      Since:
      V4.4