Grid Columns

Last modified: August 20, 2024

Introduction

Grid columns allow you to set properties for a data grid or reference set selector column.

Properties

An example of grid column properties is represented in the image below:

Grid column properties consist of the following sections:

Common Section

For more information on properties in this section, see the Common Section section in Properties Common in the Page Editor.

Data Source Section

Attribute (Path)

The attribute (path) property specifies the attribute's value that is displayed in this column. It can be an attribute of the grid entity, or it can be an attribute of an associated entity, in which case we speak of an attribute path. The path can follow multiple associations of type reference, and at the end (optionally) one of type reference set. If you show a reference set in a column the values will be separated by a comma.

Formatting Section

Enumeration Format

Only for Attributes of the Enumeration Type. A column connected to an attribute of type enumeration can show its contexts as text (default) or as image.

ValueDescription
TextShow the caption text of the enumeration.
ImageShow the image of the enumeration value.

Decimal Precision

Only for Decimal Attributes. The precision of a value is defined the number of digits that is used to express that value. This property indicates the number of decimal places (the number of digits following the decimal point).

Default: 2

Group Digits

Only for Numeric Attributes. For ease of reading, numbers with many digits before the decimal separator may be divided into groups using a delimiter. This property defines whether the end-user will see these groups, or not.

Default: False

Date Format

Only for Attributes of the Type Date and Time. The date format determines whether the date part, the time part or both are shown. How the date and time parts are formatted depends on the localization of the user using the application.

These are the possible values:

  • Date (default)
  • Time
  • Date and time
  • Custom (see below for more details)

If you choose Custom as the date format (see above), this property determines how the attribute value is formatted. The custom date format is a string that allows for any combination of symbols found in the table below. Any punctuation will be rendered literally.

All examples are for 30th December 2014, at 00:27:16.789

SymbolExampleDescription
GADThe era
y, yyy, yyyy, etc.2014Year
yy14Year
Y, YYY, YYYY, etc.2015Week year, use in combination with w for week number formatting
YY15Week year, use in combination with w for week number formatting
M, MM*12Month number
MMMDecMonth abbreviation
MMMMDecemberMonth name
w, ww*1Week of year, use for week number formatting
d, dd*30Day of month
D, DD, DDD364Day of year
aAMAM or PM
h, hh*12Hour (1-12)
H, HH*00Hour (0-23)
k, kk*24Hour (1-24)
K, KK*00Hour (0-11)
m, mm*27Minute
s, ss*16Second
S, SS, SSS789Milliseconds
E, EE05Day of week number
EEETueDay of week abbreviation
EEEETuesdayDay of week name
X08:00Time zone parsed
Z, ZZ, ZZZ-04:00Time zone offset
ZZZZGMT-04:00Time zone offset and standard

*Two characters pads with zero

These are some examples:

FormatExample Output
EEEE d MMMM yyy G, h:mm a ss's'Tuesday 30 December 2014 AD, 12:27 AM 16s
h:mm a12:27 AM
yyy D KK:mm2014 364 00:27
EEEE MMMM d yyyTuesday December 30 2014
EEE, MMM dd, ''yyTue, Dec 30, '14
EEEE, 'week' ww YYYYTuesday, week 01 2015

General Section

Caption

The caption of a column is the text that appears as a header above the rows. This is a translatable text. See Language Menu.

Editable

The editable property indicates whether the values of the column will be editable inline, as in, without opening a page with a data view. In-line editing allows the data grid to behave like you would expect from a spreadsheet application.

Aggregate Function

The values in a column can be aggregated in several ways. The aggregate function determines the way in which the values are aggregated. The aggregate will be shown at the bottom of the column that precedes by the aggregate caption (see below).

ValueDescription
NoneDo not aggregate the values in the column.
AverageShow the average of the values.
MinimumShow the smallest value.
MaximumShow the largest value.
SumShow the sum of the values.
CountShow the count of the values.

Aggregate Caption

The aggregate caption is the text that appears in front of the computed value. This is a translatable text. See Language Menu.

Show Tooltip

This property determines whether the tooltip page is shown as the mouse is hovered over this column. The tooltip page can be configured on the Data grid.

Default: False

Read More