Template Grid

Last update: Edit

1 Introduction

A template grid shows a list of objects in a tile view. For example, a template grid can show a list of employees with their profile pictures. Using controls provided by the template grid you can browse, search, and manipulate those objects:

The template grid has a lot in common with a data grid. The main difference is that the objects are shown in templates instead of rows.

2 Components

2.1 Control Bar

For more information, see Control Bar.

Search Bar is only available for Database and XPath data sources. For more information on a search bar and its settings, see Search Bar.

2.3 Sort Bar

Sort Bar is only available for Database and XPath data sources. For more information on a sort bar and its settings, see Sort Bar.

3 Properties

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

Template grid properties consist of the following sections:

3.1 Common Section

For more information on properties of this section, see the Common Section section in Properties Common for Widgets.

3.2 Data Source Properties

The data source determines which objects will be shown in the template grid. For general information about data sources, see Data Sources.

3.2.1 Type

The list view supports the following types of data sources:

The database and XPath sources retrieve objects from the database and supports searching and sorting.

3.3 General Section

3.3.1 Show Control Bar

This property indicates whether the control bar will be visible in the end user interface. The control bar also includes the paging buttons.

Default value: True

3.3.2 Show Paging Buttons

This property indicates with the buttons to page through the information in the grid are visible. Only hide these buttons if you are sure that there will never be more objects than the number of rows of the grid. Note that hiding the control bar also hides the paging buttons.

Default value: True

3.3.3 Number of Rows

With this property you can change the number of rows of templates that will be shown on one page.

Default value: 3

3.3.4 Number of Columns

With this property you can change the number of templates that will be shown next to each other in one row.

Default value: 2

3.3.5 Style Template

The style template property allows you to choose from three different styling of the template grid. These stylings depend on your theme package.

3.3.6 Selection Mode

The selection mode determines whether and how the user can select items in the grid.

Value Description
No selection The user cannot select items.
Single selection The user can select a single item by clicking on it. Clicking another item will make that item the selection.
Single selection and maintain The user can select one item at a time by clicking on it. Users cannot deselect an item. By default the first item will be selected and removing a selected item will autoselect a subsequent item.
Multi-selection The user can select multiple items by clicking the first one and holding the ‘Ctrl’ key while clicking on other items. Simply clicking an item will deselect all items and make the clicked item the selection.
Simple multi-selection The user can select multiple items by simply clicking on them.

Default value: Single selection

3.3.7 Select First

This property indicates whether the first item will be selected initially. This is especially useful if there is a data view listening to this grid.

Default value: False

3.3.8 Default Button Trigger

The default button can be triggered by a single or a double click on a row.

Value Description
Single click A single click triggers the default button. This cannot be used in combination with allowing the user to select rows.
Double click A double click triggers the default button.

Default value: Double click

3.3.9 Refresh Time (in Seconds)

If the refresh time is non-zero, the template grid will refresh its contents every given number of seconds. For example, a task list could be refreshed every minute so that you know when new tasks arrive. By default the refresh time is zero and this means that the grid will not automatically refresh itself.

Default value: 0

3.4 Visibility Section

Visibility determines whether a widget is displayed to the end-user as part of the page.

For more information on properties of this section, see the Visibility Section section in Properties Common for Widgets.

4 Performing Specific Actions

To perform actions on a template grid, select it on a page and right-click it. The list of possible actions opens. While some actions from this list, such as Select data source, Edit condition for visible, are a quick way to set the properties, the following actions are specific actions that you can perform:

  • Go to entity – opens a domain model and highlights an an entity that is used as the data source
  • Go to data source **microflow **– this action is only displayed when a microflow is set as the data source and opens this microflow

5 Read More