Skip to content

[DataGrid] Add onMenuOpen() and onMenuClose() event handlers in GridActionsCell#20924

Merged
arminmeh merged 9 commits intomui:masterfrom
jhe-iqbis:GridActionsCell-menu-events
Jan 21, 2026
Merged

[DataGrid] Add onMenuOpen() and onMenuClose() event handlers in GridActionsCell#20924
arminmeh merged 9 commits intomui:masterfrom
jhe-iqbis:GridActionsCell-menu-events

Conversation

@jhe-iqbis
Copy link
Copy Markdown
Contributor

  • Added onMenuOpen and onMenuClose props to the GridActionsCell to be able to detect and influence when the menu is opened and closed.
  • This may for example be used to change the row selection if a menu is opened for a previously unselected row. (This is what I'm using it for.)

* Added onMenuOpen and onMenuClose props to the GridActionsCell to be able to detect and influence when the menu is opened and closed.
* This may for example be used to change the row selection if a menu is opened for a previously unselected row. (This is what I'm using it for.)
@mui-bot
Copy link
Copy Markdown

mui-bot commented Jan 15, 2026

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

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid 🔺+113B(+0.03%) 🔺+57B(+0.05%)
@mui/x-data-grid-pro 🔺+113B(+0.02%) 🔺+16B(+0.01%)
@mui/x-data-grid-premium 🔺+113B(+0.02%) 🔺+44B(+0.02%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 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 d103bcf

@jhe-iqbis jhe-iqbis changed the title feat: new menu event handlers in GridActionsCell [@mui/x-data-grid][GridActionsCell] feat: new menu event handlers in GridActionsCell Jan 15, 2026
@zannager zannager added the scope: data grid Changes related to the data grid. label Jan 15, 2026
@arminmeh arminmeh added customization: logic Logic customizability. 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 Jan 16, 2026
@arminmeh arminmeh changed the title [@mui/x-data-grid][GridActionsCell] feat: new menu event handlers in GridActionsCell [DataGrid] Add onMenuOpen() and onMenuClose() event handlers in GridActionsCell Jan 21, 2026
@arminmeh arminmeh merged commit 64255cc into mui:master Jan 21, 2026
22 checks passed
arminmeh added a commit to arminmeh/mui-x that referenced this pull request Jan 21, 2026
…GridActionsCell` (mui#20924)

Co-authored-by: Armin Mehinovic <[email protected]>
Co-authored-by: Armin Mehinovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

customization: logic Logic customizability. 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.

4 participants