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

[data grid] Using MUI DatePicker in DataGrid is cumbersome #15418

Open
entaildevops opened this issue Nov 14, 2024 · 2 comments
Open

[data grid] Using MUI DatePicker in DataGrid is cumbersome #15418

entaildevops opened this issue Nov 14, 2024 · 2 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature support: docs-feedback Feedback from documentation page waiting for 👍 Waiting for upvotes

Comments

@entaildevops
Copy link

entaildevops commented Nov 14, 2024

Related page

https://mui.com/x/react-data-grid/custom-columns/

Kind of issue

Broken demo

Issue description

DataGrid uses the browsers native datepicker for columns of type "date" by default. The locale of the datepicker comes from browser (at least in Chrome it is the Chrome UI language), which has potential to make the app wide localization inconsistent since LocalizationProvider has no effect on the native datepicker.

I know there is a way to use MUI X DatePicker and that there is an example in the docs, but adding this much code seems cumbersome. Also I was not able to get the example working with AdapterLuxon (the example uses AdapterDateFns). The provided example is not too well commented and explained eather.

IMHO it would make sense to provide a clean and easy way to use MUI X DatePicker in DataGrid instead of requiring hours of research and work the task.

According to issue from 2022 adding support proper for MUI X Datepickers in DataGrid is "coming soon". I wonder what is the current situation?

Context

No response

Search keywords: DatePicker

@entaildevops entaildevops added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels Nov 14, 2024
@zannager zannager added the component: pickers This is the name of the generic UI component, not the React module! label Nov 14, 2024
@michelengelen
Copy link
Member

@joserodolfofreitas do we have an ongoing effort of adding it as the base picker for the grid?

@entaildevops thanks for opening this. 👍🏼

@michelengelen michelengelen added component: data grid This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature and removed component: pickers This is the name of the generic UI component, not the React module! labels Nov 14, 2024
@michelengelen michelengelen changed the title Using MUI X DatePicker in DataGrid is cumbersome [data grid] Using MUI DatePicker in DataGrid is cumbersome Nov 14, 2024
@michelengelen
Copy link
Member

So, as of now we do not support the MUI date components OOTB, but i know that there are discussions around using is in the future. It seems this has come up a few times already, so I will use this as the opportunity to add a waiting for upvotes label on this one.

@michelengelen michelengelen added waiting for 👍 Waiting for upvotes and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature support: docs-feedback Feedback from documentation page waiting for 👍 Waiting for upvotes
Projects
None yet
Development

No branches or pull requests

3 participants