Datagrid Enum Dropdown default sort issue

0
Inside a Datagrid search field there is drop down where I do not want to sort the drop down values and I want to display the values in the same order how in the enumeration it is defined. So in the sort option i left it as default sorting . But in the UI it is getting sorted with ascending order. Strange part is this behavior is not consistent in the other drop down the values are not getting sorted but here in one particular dropdown it is getting sorted without defining any sort.
asked
1 answers
1

In Mendix, the order of values in an Enumeration is not guaranteed to be preserved in DataGrid / DataGrid2 search dropdowns.Even if sorting is left as default, the dropdown options are often automatically sorted alphabetically by caption by the widget.

The inconsistent behavior you see is normal and can depend on:

  • widget type (DataGrid vs DataGrid2)

  • Mendix version

  • captions / translations

There is no supported setting to force the dropdown to follow the enum definition order.If the order matters, the recommended workaround is to use a reference entity with a SortOrder attribute or a custom filter instead of the built-in enum filter.

answered