Skip to content

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Aug 18, 2025

@siriwatknp siriwatknp added docs Improvements or additions to the documentation. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Aug 18, 2025
@mui-bot
Copy link

mui-bot commented Aug 18, 2025

Deploy preview: https://deploy-preview-19221--material-ui-x.netlify.app/

Updated pages:

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against c6afa37

Copy link
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

To format large numbers in the pagination component, customize the `paginationDisplayedRows` with the following code:

```jsx
import { DataGridPro } from '@mui/x-data-grid-pro';
Copy link
Member

@oliviertassinari oliviertassinari Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We must always use the version that matches the docs context when we can, by default MIT.

Suggested change
import { DataGridPro } from '@mui/x-data-grid-pro';
import { DataGrid } from '@mui/x-data-grid';

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DataGrid won't work in this case because the pagination is not allowed to be more than 100.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add this info at the beginning of the section

Copy link
Member

@oliviertassinari oliviertassinari Aug 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DataGrid won't work in this case because the pagination is not allowed to be more than 100.

This would be news for me. People can paginate without limits in the MIT version. Let's remove the Pro component usage.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michelengelen just want to confirm with you before merging this PR. Do you think it make sense for this section to target DataGrid Pro and above (given the error from the image above)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would make sense, yes, but... we do support more than 100 rows in the MIT data grid. This change would then not apply to the pageSize, but rather the currently viewed range of rows and the total rows:

Screenshot 2025-08-21 at 13 50 21

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I think it's better to switch to the community version. Let me update the demo.

@MBilalShafi MBilalShafi added the scope: data grid Changes related to the data grid. label Aug 21, 2025
@oliviertassinari oliviertassinari added the i18n Internationalization. The infrastructure used by localization. label Aug 21, 2025
@siriwatknp siriwatknp requested a review from MBilalShafi August 25, 2025 02:43
Copy link
Member

@MBilalShafi MBilalShafi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the recipe. Looks really nice. 🙌

@siriwatknp siriwatknp enabled auto-merge (squash) August 25, 2025 07:01
@siriwatknp siriwatknp added docs Improvements or additions to the documentation. and removed docs Improvements or additions to the documentation. labels Aug 25, 2025
@siriwatknp siriwatknp merged commit e25895d into mui:master Aug 25, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation. i18n Internationalization. The infrastructure used by localization. scope: data grid Changes related to the data grid. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants