Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataGrid] Allow providing custom text for column with enum type when filtering #7621

Open
2 tasks done
nsztyk opened this issue Oct 9, 2023 · 1 comment · May be fixed by #8581
Open
2 tasks done

[DataGrid] Allow providing custom text for column with enum type when filtering #7621

nsztyk opened this issue Oct 9, 2023 · 1 comment · May be fixed by #8581
Assignees
Labels
enhancement New feature or request wants to do a PR

Comments

@nsztyk
Copy link

nsztyk commented Oct 9, 2023

Feature request type

Enhance component

Component name

DataGrid

Is your feature request related to a problem?

When filtering a column with enum type data grid takes values from declared enum which are mostly written in english and not customer friendly

Current code:

image

Describe the solution you'd like

I would like to pass some form of argument
Func<TEnum, string> EnumToString

to apply custom values eg transalting them depending on language or to apply spaces to displayed values

Have you seen this feature anywhere else?

https://mui.com/x/react-data-grid/filtering/

image

Describe alternatives you've considered

No response

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nsztyk nsztyk added enhancement New feature or request triage labels Oct 9, 2023
@github-actions
Copy link

github-actions bot commented Oct 9, 2023

👋 Thanks for wanting to do a PR @nsztyk !
We suggest that you wait for an answer from @MudBlazor/contribution-team @MudBlazor/core-team . Otherwise we can not guarantee that your PR will be merged. As the library grows, we have to be very strict what PRs we can accept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wants to do a PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants