Material-table: Disable draggable column header

Created on 28 May 2019  路  9Comments  路  Source: mbrn/material-table

Hi @mbrn, I looked the documentation to disable drag'n'drop column header and only found the flag column.grouping: false, but had no effect because I'm not grouping any data. How do I disable the draggable feature in column header? I don't wanna permit to change the column order, otherwise it messes with my workaround to freeze a column.

enhancement wontfix

Most helpful comment

I can add a columnReordering flag to options for next release.

All 9 comments

I can add a columnReordering flag to options for next release.

Hey @mbrn, sup? Did you take a look at this?

Hi @v1nns

I am not at work and can not work at village. This is Feast of Ramadan days for muslims:). Thanks for patience

Ooops, sorry @mbrn, I had no idea about that. I wish a happy Ramadan Feast to you.

Up

Hi @mbrn , I think the #779 solution is what we are looking. That's a simple opt-out and I'm looking forward for that feature.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

hi @mbrn , is there a way to prevent one column from being re ordered when dragging and dropping the headers? I want my first column to always stay in the first position, but the rest of the columns can be moved around. I did not see a column flag property to prevent it from being dragged. Thank you!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

Was this page helpful?
0 / 5 - 0 ratings