Preselect multiple Dropdown options on page/widget load

0
Using the Data Grid 2, it is possible to include a Dropdown Filter with multiselect. However, my team has not yet found a way to preselect more than one of these options when loading the widget. Is this possible somehow or is this functionality not available at this time?
asked
3 answers
2

Hey Sandro,

When performing multiselect filtering in Datagrid2, if you want to select multiple default values, you should express them as comma-separated. I’m sharing an example below, I hope it helps.

 

1.PNG

 

2.PNG

answered
0

Hi Sandro Rüssel

 

Refer this widget it's helps you :  

https://marketplace.mendix.com/link/component/210904

 

BOOT STRAP MULTI SELECT  widget:

https://marketplace.mendix.com/link/component/2295

https://community.mendix.com/link/space/widgets/questions/114481

 

 

 

answered
0

hi,


At the moment, this is not supported in Data Grid 2.

The multiselect dropdown filter only supports user interaction after the grid has loaded. There’s no way to prefill or preselect multiple values when the page opens. This applies regardless of whether you use personalization, page load microflows, or default values.

We ran into the same requirement and couldn’t find a supported workaround inside the grid itself. The filter state is handled internally by the widget and isn’t exposed for initialization.

If you need predefined filtering, the only reliable options are:

  • Apply the filter logic in the datasource (XPath or microflow), or
  • Build your own external multiselect filter and use that to control the grid

So short answer: it’s a current limitation of Data Grid 2, not something you’re missing in configuration.

answered