-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] Add slot for the column header #6691
Comments
Hey @mwardGresham |
Hello We're trying to get a context menu on our grid, it has to work for both the cells and header cells, but right clicking on cells doesn't cause onCellClick or onColumnHeaderClick to fire, we've seen the demo provided here (https://mui.com/x/react-data-grid/components/#row) but couldn't get it to work for cell headers and also doesn't return the row/header position of the selection. Thanks |
Any update on this so we can progress? |
Hey @mwardGresham
You can use
This is expected. You have to use |
Could you describe more the problem with the row position? In the demo you have the row ID.
Instead of adding a specific prop for the event, it's best to add a slot for the column header. It would also unlock developers to implement header filters like #4934 (comment) in their side. |
A slot for the column header in components props would solve our issue I think, if that could be added? |
Hello, is it possible for us to get any ETA on this? |
Hey @mwardGresham |
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. |
Order ID 💳
45466
Duplicates
Latest version
The problem in depth 🔍
I cant find a way to get access to the anchored cell (blue outlined selected cell) in the datagrid e.g. onAnchorCellChange
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: