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

How to change the default date picker of column type date in my datagrid pro #10589

Open
arkangel-app opened this issue Oct 6, 2023 · 3 comments
Labels
component: pickers This is the name of the generic UI component, not the React module! plan: Premium Impact at least one Premium user status: waiting for author Issue with insufficient information support: commercial Support request from paid users

Comments

@arkangel-app
Copy link

arkangel-app commented Oct 6, 2023

The problem in depth 🔍

Is there a way to change the default date picker for the editable column using the type 'date'. I want to change the views={['month', 'year']}

Your environment 🌎

`npx @mui/envinfo`
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: datagrid-pro datepicker
Order ID: 68367

@arkangel-app arkangel-app added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Oct 6, 2023
@alexfauquette
Copy link
Member

Are you already customizing the column?

By default, the column is a native picker. To use views={['month', 'year']} you should replace it by the @mui/x-date-pickerspackage

https://mui.com/x/react-data-grid/recipes-editing/#usage-with-mui-x-date-pickers

@arkangel-app
Copy link
Author

arkangel-app commented Oct 6, 2023

@alexfauquette Sorry, your link is incorrect.
I just found this solution but this is for DataGrid link
Is there any solution for Datagrid Pro?

@LukasTy
Copy link
Member

LukasTy commented Oct 6, 2023

Sorry, your link is incorrect.

The documentation has probably been moved in the latest release and is now available here.

I just found this solution but this is for DataGrid link Is there any solution for Datagrid Pro?

Is there an issue replicating the logic for DataGridPro?
There should be no fundamental differences between using date columns with @mui/x-date-pickers with any of the available DataGrid component tiers. 🤔

@zannager zannager added plan: Premium Impact at least one Premium user component: pickers This is the name of the generic UI component, not the React module! labels Oct 6, 2023
@romgrk romgrk added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! plan: Premium Impact at least one Premium user status: waiting for author Issue with insufficient information support: commercial Support request from paid users
Projects
None yet
Development

No branches or pull requests

5 participants