eclipse-nattable / nattable

High performance SWT data grid
https://eclipse.dev/nattable/
Eclipse Public License 2.0
11 stars 6 forks source link

[Filter] Add option to provide a comparator for combobox content #52

Closed fipro78 closed 5 months ago

fipro78 commented 5 months ago

With the Excel-like filter row you get comboboxes with checkboxes that contain unique values of the corresponding column. Those values in the comboboxes are currently sorted by natural order. In some situations this order might not be what a user expects. For example the natural order of the textual representation of dates is typically not the ordering you expect.

The FilterRowComboBoxDataProvider should be extended so it can be configured to retrieve a Comparator from the ConfigRegistry. Ideally the same Comparator could be used that is also used for sorting via SortHeaderLayer.

fipro78 commented 5 months ago

Implemented and verified by user project