Back Forward Harness and Section forms - Adding a Grid layout

About Harnesses

A Grid layout presents data in aligned columns and rows, as a spreadsheet. Grids are highly performant and can display expansive data sets using progressive paging. There are numerous options for configuring read-only and editable grids.

Using grid layouts, users can view (and in certain cases edit) values of a Data Page, Page List or Page Group property, or a report definition, in a spreadsheet format. The layout can display a custom skin; is cross-browser compatible; is sortable by column; fields can be configured to be editable and localizable.

When a grid is bound to a data page or report definition that accepts parameters and the parameter value uses a property reference, the grid automatically refreshes whenever the property value changes.

If you are building a Mobile application, see Supported user interface features for mobile applications.

Adding and configuring a Grid layout

  1. In the section, click Layout group and select Layout.
  2. On the Set layout type dialog, select Repeating layout.
    Dynamic layouts do not support grid layouts. To see the Grid option for Repeating layout, insert the Layout control directly in a section.
  3. In the dropdown, select Grid, and then click OK.
  4. Click Magnifying glass in the Grid Repeat Layout to open the Properties panel.
  5. In the Properties panel, define the dropdown list using the following tabs:

    You can also set properties for columns, rows, and action areas.

You can also add a grid layout by dragging the Page List, Page Group, Data Page, or Report Definition that you want to use as the data source from the Application Explorer into the section. You can reference a Page List embedded in any of level of pages; for example Page.Page.PageList.

TipThe UI Gallery contains working examples of grid layouts. To view and interact with examples and review configurations, select > User Interface > UI Gallery. Explore the examples in the Tables & Grids category.

How to use the properties panels

You configure many elements in a grid layout using properties panels. To display the panels, select an element and click magnifying glass. To select an element, click the following:

Property fields may appear at the top of the panel or in one or more tabs. If the panel is pinned Pinned, click Apply to apply your changes. Click the red x at the top right of the panel to close it. If the panel is not pinned, click Apply to apply your changes and continue editing, or OK to apply your changes and close the panel.

The Grid layout has three areas:

Title cell properties

If you select the Standard or Standard (sub) formats, a cell appears to the right of the grid's title.

grid title field

Open the properties panel to set the following values:

Value SmartPrompt Select a field value that appears as the column title.
Label For SmartPrompt Indicate the property that appears in this column in the repeating rows.

Column properties

Select a column in the repeating area and open its properties panel.

Width

Select to specify the width of this column in pixels. You can also adjust the width of a column directly:

  1. Hover the mouse pointer over the cell border.
  2. When the pointer changes shape, drag the border to adjust the column width.
Inline Style

Optional: Override the stylesheet settings in this cell with local values.

Enter CSS code for an inline style for a cells in the column. For guided assistance in composing a style definition, click Magnifying glass to open the Style Editor. You can select from predefined lists or type a style definition directly, and preview the results.

Filtering

Appears if the Filtering checkbox is selected on the Repeat Grid panel. Select a filtering option for this column:

  • Auto — Displays a checkbox for each unique value and the search or date range fields, depending upon the column data type. This is the default.
  • Range/Search — Displays only the search or date range fields, depending upon the column data type. Use this option to enable search or date range on columns in which the value of each row is unique, for example, a description column.
  • None — No filtering is available on this column.
Enable Sorting

Appears if the Enable Sorting checkbox is selected on the Repeat Grid panel. This is checked by default. Clear to disable sorting on this column.

Sort/filter property Enter a property for sorting and filtering. For date or date-time properties you may also specify a date format to display in the filter pop-up.

Row properties

Select either row in the repeating area and open its properties panel.

Set height during execution

Enter a positive number for the height in pixels of this cell. (At runtime, normal browser processing for rendering tables determines the actual displayed height.) You can also adjust the height of a row directly:

  1. Click a horizontal wireframe cell border.
  2. Wait until the pointer shape changes drag, then drag the border.
Inline Style Optional. Open the Style Editor panel for this cell to override the stylesheet settings with local values.
Make Header? Select to display all the cell values in the row with the same style that the column heading uses.

Cell properties

grid repeat cell

Select a cell from the second row in the repeating area and open its properties panel.

Property

SmartPrompt Select a Single Value property. Typically, this is from within data source's embedded page property. Alternatively, you can drag a property name from the properties visible in the Application Explorer onto the cell.

If the source is a report definition, the list contains Column Name properties defined in the rule. If there are joins in the report, property names appear as joinname.PropertyName.

This field does not appear if the value in the Control field contains an Action mode control such as pxButton.

Control Select a control to format the value in this cell. If left blank, the property uses the control (if any) in the Control field on the property form's SmartPromptGeneral tab.

Many controls on the Basic and Advanced groups are associated with default controls based on the property type. When you drag and drop a control into the cell, the rule appears in this field. For example, the Button control populates the field with pxButton, the Text Area control with pxTextArea, and so on.

Behavior Click the magnifying glass beside this field to display the Client Event Editor, where you can specify formatting conditions and actions for this field. For general information on this capability, see Harness and Section forms Help — Client Event Editor.

This field does not appear if the value in the Control field contains an Action mode control such as pxButton.

star The delete icon appears at the right of the repeating row in this area, to indicate how and where it appears at runtime. Do not use it to attempt to remove cells or rows while editing the layout.

The Grid layout has two action areas, one at the top and one at the bottom of the display. You can use one or both.

tree grid action section

If you use both, configure each action area separately.

Select Action Top or Action Bottom, then display the properties panel. Select a column header and open its properties panel.

Visible When Optional. To control the visibility of the area, enter or select one of the following:
  • The When Name key part of a when condition rule. Clickmagnifying glass to review or create the rule.
  • Simple expression based on the comparison of a pair of constants, properties, or both, combined by Boolean operators, such as .Color="Red". You can combine the expression with a when condition rule or another expression using the && and || operators.

As a best practice, use the Condition Builder to edit this field. Click to open the tool. See Using the Condition Builder to configure dynamic UI actions.

Run on Client? Appears when you enter a simple expression in the Visible When field. Select to cause dynamic execution of the condition each time the value of a property stated in the condition changes.

Advanced tab

ID Optional. Provide an identifier for this grid, for JavaScript use. Start with a letter, use no spaces, and include only alphanumeric characters, dashes, or underscores.

Column properties

Select a column in one of the action areas and open its properties panel.

grid action column

Width Specify the column width in pixels.

Clear the Use at Runtime checkbox (unlabeled) next to the width field to allow the browser at runtime to determine the width of this column based on the size of the column contents and the size of other columns. The width may vary from use to use depending on the contents of this cell and other cells. (When cleared, the generated HTML for this column includes a <TD> element with no WIDTH= attribute.) The Width value is used as you view the rule form, but not at runtime.

For example, clear this checkbox if the cell is to contain a section that may be wide in some situations and narrow in others.

Select (default) the Use at Runtime checkbox to force the Width value to be used by the browser at runtime, even when data values in this column or in other columns would otherwise cause the browser to present a wider or narrower column. If checked, data values may sometimes wrap or appear truncated.

Inline Style Optional. Enter CSS code for an inline style for a cells in the column. For guided assistance in composing a style definition, click Magnifying glass to open the Style Editor. You can select from predefined lists or type a style definition directly, and preview the results.
Enable Sorting Appears and selected by default if Sorting in the Repeat Grid properties panel is selected. Clear the checkbox to disable sorting on this column.
Use Heading Styles Select to display the cell values with the same style the column heading uses — changes the cell HTML element from <TD> to <TH>, with a resulting style change.

Row properties

Select the row in the top or bottom action area and open its properties panel.

Height

Enter a positive number for the height in pixels of this cell.

Clear the Use at Runtime checkbox (unlabeled) to allow the browser at runtime to determine the height of this row based on the size of the row contents and the size of other rows. The height may vary from use to use depending on the contents of this cell and other cells. (When cleared, the generated HTML for this column includes a <TD> element with no HEIGHT= attribute.) The Height value is used as you update the rule, but not at runtime.

For example, clear this checkbox if the cell is to contain a section that may be tall in some situations and short in others.

Select the Use at Runtime checkbox to force the Height value to be used by the browser at runtime, even when data values in this column or in other cells would otherwise cause the browser to present a taller or shorter column.

Inline Style Open the Style Editor panel for this cell to override the stylesheet settings with local values.
Make Header? Select to display all the cell values in the row with the same style that the column heading uses. This is an alternative to individually selecting the Use Heading Styles checkbox for each column. This option is unchecked by default.

Action cell properties

grid action cell

Add a control, property, or other section that is appropriate to the display and function of your data. Configure the section's properties by selecting it and then displaying the properties panel. For buttons, see Section and Flow Action forms — Adding a Button Control.

When you select a Header Style of Tabbed, the layout appears in a Tab Group wireframe. Select it to make it active and click Magnifying glass in the header to open the Tab Group properties panel. Your settings apply to all the tabs in the group.

Complete the top field and General tab. There are no settings on the Advanced tab.

Top field

Field

Description

Format

Select the styles you want to apply to the tabs in the group. Select:

  • Standard
  • Sub
  • Other

General tab

Field

Description

Tab Position

Select the placement of the tabs at runtime:

  • Top
  • Bottom
  • Left
  • Right

If you select Left or Right, specify the horizontal or vertical orientation of the tabs in the Tab Orientation field

Tab Orientation If you selected a left or right Tab Position, select to display tabs horizontally or vertically. Horizontal is the default. If you select vertical orientation, the tab title is rotated based on the tab position, left or right.
Stretch Tabs Select to stretch the horizontally or vertically to fit the available space. If the Tab Position is Top or Bottom, tabs stretch horizontally; if the Tab Position is Left or Right, the tabs stretch vertically.

Up About Flow Actions

Up About Harnesses

Up About Sections