You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you were previously using the Data Grid 2 module, you must follow these steps before updating it to the new [Data Widgets](https://marketplace.mendix.com/link/component/116540) module:
24
25
25
-
1. Rename the current **DataGrid** module (under **Marketplace** modules) to *DataWidgets* in Studio Pro.
26
+
1. Rename the current **DataGrid** module (under **Marketplace** modules) to _DataWidgets_ in Studio Pro.
26
27
1. Open the Marketplace and search for **Data Widgets**.
27
28
1. Download and replace the current (renamed) DataWidgets module.
Copy file name to clipboardExpand all lines: content/en/docs/marketplace/platform-supported-content/modules/data-widgets/data-grid-2-properties.md
+30-9Lines changed: 30 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,12 @@ The time (in seconds) the grid waits between refreshing the data. Auto-refreshin
27
27
28
28
This property controls row selection capabilities. Selection is turned off by default, but can be enabled by choosing ether **Single** or **Multi**:
29
29
30
-
* The **Single** selection is selection type where only one row can be selected at the time
31
-
* The **Multi** type support selecting several rows at the time
30
+
- The **Single** selection is selection type where only one row can be selected at the time
31
+
- The **Multi** type support selecting several rows at the time
32
32
33
33
{{% alert color="info" %}}
34
-
Data grid currently supports only in-memory selection. This implies some limitation which allows selecting only visible rows. If you change a data grid page or reload the browser window, then selection will be cleared.{{% /alert %}}
34
+
Data grid currently supports in-memory selection. When the **Keep Selection** property is disabled, selection is limited to visible rows and will be cleared when you change a data grid page or reload the browser window. When **Keep Selection** is enabled, selections persist across page navigation, data refreshes, filter operations, and sorting changes.
35
+
{{% /alert %}}
35
36
36
37
#### Selection Method
37
38
@@ -53,10 +54,30 @@ When set to **Yes**, the data grid displays a checkbox in the header that, when
53
54
54
55
#### Loading Type
55
56
56
-
This property controls how loading states are displayed during data operations such as pagination, filtering, and refresh.
57
+
This property controls how loading states are displayed during data operations such as pagination, filtering, and refresh.
57
58
58
59
Available options include spinner (rotating overlay) and skeleton (placeholder content). Loading indicators automatically appear during initial data load, pagination navigation, filter operations, sorting, and export operations. The system includes smart timing to prevent flickering on fast operations, and also provides appropriate timeout handling for slow operations.
59
60
61
+
### Behavior Tab
62
+
63
+
#### Selection
64
+
65
+
This section contains properties related to selection behavior when **Selection** is set to **Single** or **Multi**.
66
+
67
+
#### Keep Selection
68
+
69
+
{{% alert color="info" %}}
70
+
This property is only available when **Selection** is set to **Single** or **Multi**.
71
+
{{% /alert %}}
72
+
73
+
By default, this property is set to **No**, which clears the selection when the items are not in the current set of datasource items.
74
+
75
+
When set to **Yes**, selected items persist across page navigation, data refreshes, filter operations, and sorting changes. When enabled, selections remain active until manually cleared by the user or through a nanoflow action.
76
+
77
+
{{% alert color="warning" %}}
78
+
**Keep Selection** cannot be used with non-persistent entities (NPEs) or view entities, as their IDs change on refresh.
79
+
{{% /alert %}}
80
+
60
81
### Columns Tab {#columns}
61
82
62
83
#### Columns
@@ -87,7 +108,7 @@ This property controls the visibility of navigation buttons. If set to **Auto**,
87
108
88
109
#### Show Number of Rows
89
110
90
-
This property displays the total number of rows in the pagination area, providing users with context about the dataset size.
111
+
This property displays the total number of rows in the pagination area, providing users with context about the dataset size.
91
112
92
113
When enabled, it shows information such as **1 to 20 of 150**. It works with virtual scrolling, load more pagination, and standard pagination modes. On large datasets, the total count calculation may impact initial load time.
93
114
@@ -115,9 +136,9 @@ This property sets the action to be performed when the row is clicked.
115
136
116
137
This property sets the action to be performed when the row is selected or unselected.
117
138
118
-
#### Filters {#filters-placeholder}
139
+
#### Filters {#filters-placeholder}
119
140
120
-
This placeholder acts as a container for filter widgets that operate on the entire grid. This placeholder provides a designated area for placing filter widgets (text filter, date filter, number filter, drop-down filter) that filter across all grid data rather than being limited to individual columns.
141
+
This placeholder acts as a container for filter widgets that operate on the entire grid. This placeholder provides a designated area for placing filter widgets (text filter, date filter, number filter, drop-down filter) that filter across all grid data rather than being limited to individual columns.
121
142
122
143
Filter widgets placed here automatically link to the grid's datasource, and changes immediately affect the grid data. Still, widgets should be configured to work properly. Multiple filters work together using **AND** logic by default.
123
144
@@ -143,7 +164,7 @@ This flag controls column hiding for the entire data grid. If set to **No**, the
143
164
144
165
#### Store Filters in Personalization
145
166
146
-
This property controls whether filter states are saved as part of user personalization settings or not. When enabled, the system preserves filter input values, selected filter types, applied filter combinations, filter visibility states, and custom filter configurations in the user's personalization profile.
167
+
This property controls whether filter states are saved as part of user personalization settings or not. When enabled, the system preserves filter input values, selected filter types, applied filter combinations, filter visibility states, and custom filter configurations in the user's personalization profile.
147
168
148
169
Filter states can be stored in browser localStorage or database attributes depending on personalization configuration. When enabled, users' filter preferences persist across sessions and page refreshes. When disabled, filters reset to default values on every page load — useful for shared screens, dashboards, or public interfaces.
149
170
@@ -181,7 +202,7 @@ Defines a string value that labels the checkbox of the row when the selection is
181
202
182
203
#### Select All Rows
183
204
184
-
This property provides an ARIA label for the **Select All** checkbox in the grid header. This ARIA label is announced by screen readers when users navigate to the select all checkbox.
205
+
This property provides an ARIA label for the **Select All** checkbox in the grid header. This ARIA label is announced by screen readers when users navigate to the select all checkbox.
185
206
186
207
The label integrates with three-state checkbox functionality (unchecked, checked, indeterminate) and supports localization through text templates. Screen readers announce appropriate state changes when the checkbox is toggled, improving accessibility compliance for bulk-selection operations.
0 commit comments