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

[XGrid] How do I use columnHeaderDragStart and columnHeaderDragEnd #2158

Closed
tfcb93 opened this issue Jul 16, 2021 · 2 comments
Closed

[XGrid] How do I use columnHeaderDragStart and columnHeaderDragEnd #2158

tfcb93 opened this issue Jul 16, 2021 · 2 comments
Labels
support: Stack Overflow Please ask the community on Stack Overflow

Comments

@tfcb93
Copy link

tfcb93 commented Jul 16, 2021

Sorry if it's a silly question, but I want to use both columnHeaderDragStart and columnHeaderDragEnd events, and I don't know how can I use it.
My idea is identify a certain column and disable the column reorder of the Xgrid. I have certain columns that I want to allow reorder and others that I don't. If there is another way of do it without using columnHeaderDragStart and columnHeaderDragEnd I appreciate as well.

@m4theushw
Copy link
Member

m4theushw commented Jul 16, 2021

The ability to disable reordering of a specific column is being implemented in #2085. About how to use events, you can check this page: https://material-ui.com/components/data-grid/events. However, there's no way to disable column reordering using events. I'll close this issue and you can follow the PR to know when it gets released

@m4theushw m4theushw added components: XGrid support: Stack Overflow Please ask the community on Stack Overflow labels Jul 16, 2021
@support
Copy link

support bot commented Jul 16, 2021

👋 Thanks for using Material-UI!

We use GitHub issues exclusively as a bug and feature requests tracker, however,
this issue appears to be a support request.

For support, please check out https://material-ui.com/getting-started/support/. Thanks!

If you have a question on StackOverflow, you are welcome to link to it here, it might help others.
If your issue is subsequently confirmed as a bug, and the report follows the issue template, it can be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support: Stack Overflow Please ask the community on Stack Overflow
Projects
None yet
Development

No branches or pull requests

2 participants