Hi,
I’d like to propose the following small QoL improvement for the GridPro component when using the built-in select editor for enums.
It should be possible to restrict which enum values are available for selection.
The suggested approach for this use case is to use String instead of an enum class.
For our use cases, this is somewhat cumbersome, since we have to convert the String back to an Enum in the ItemUpdater.
Best place for such a suggestion would be at GitHub · Where software is built - you could create a pull request for this to increase likelihood of it getting accepted since it’s quite small and a reasonable use-case.
Thanks Christian, I hadn’t thought of that, since it’s a pro-component.
Thanks also for adding the GitHub link.
I’ll get to work on creating a pull request in the next few days.
You might want to create a issue first and see what the team thinks about it before “wasting” your time :) Especially with different ways of implementation the feature, you could for example add a parameter with a List or T… which values of the enum are allowed or supply a Predicate which is used to filter the enum class… both ways sound reasonable.