material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Resizing of columns

Open Dwight-D opened this issue 5 years ago • 22 comments

An option for resizable columns would be great, in a similar vein as the draggable columns. Maybe such functionality is already possible but I didn't see any straight forward way to do it or find anything when searching.

Thanks for your work!

Dwight-D avatar Aug 07 '19 14:08 Dwight-D

The following are good examples of what could work well: https://devexpress.github.io/devextreme-reactive/react/grid/demos/featured/tree-data/ https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/column-resizing

Notice how when text/data doesn’t fit in a column, it gets cut off with an ellipse

jakeleventhal avatar Dec 25 '19 19:12 jakeleventhal

Some notice from this topic?

LChris94 avatar Mar 05 '20 16:03 LChris94

I'm also voting for this to be added - and I'm curious, are there any reference requirements of UX guidelines that this project is trying to fulfill? For example, I found it's as high as # 2 here:

https://www.mobilespoon.net/2019/11/design-ui-tables-20-rules-guide.html

Alternatively, as illustrated by the comment below, I would suggest that there should be some way to dynamically adjust the width based on some priorities, so that when there are some columns without any long content, they would be squashed instead of taking the entire width as a forced minimum value. Nevertheless, the approach of having user resize the columns is the most universal one anyway, just like you would expect from Excel, where you can also double-click between the columns and have the width automatically adjusted to fit the content.

scscgit avatar Jun 08 '20 11:06 scscgit

@mbrn please prioritise the resizing of columns. It is essential when the contents are not uniform. It makes the table look ugly. See image attached. If the user could resize the column and the width adjusts properly, it would be wonderful. image

iamsaurabhgupt avatar Jun 30 '20 05:06 iamsaurabhgupt

In some cases, this could be handy! I need this in my project too.

priyanshu-intellemo avatar Jul 06 '20 12:07 priyanshu-intellemo

can we have resize feature of columns in this table in priority?

Shivam-Intellemo avatar Jul 06 '20 18:07 Shivam-Intellemo

I started to work on this :)

mbrn avatar Aug 01 '20 13:08 mbrn

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.

stale[bot] avatar Oct 30 '20 14:10 stale[bot]

not stale

jakeleventhal avatar Oct 30 '20 14:10 jakeleventhal

any progress on this ?

rikr2sanchez avatar Dec 27 '20 22:12 rikr2sanchez

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.

stale[bot] avatar Mar 28 '21 05:03 stale[bot]

not stale

jakeleventhal avatar Mar 28 '21 11:03 jakeleventhal

Any progress on this?

armor009 avatar Jun 13 '21 20:06 armor009

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.

stale[bot] avatar Sep 11 '21 23:09 stale[bot]

@mbrn can you please label this issue to make the stale bot shut up?

scscgit avatar Sep 12 '21 18:09 scscgit

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.

stale[bot] avatar Dec 12 '21 03:12 stale[bot]

not stale

rikr2sanchez avatar Dec 12 '21 04:12 rikr2sanchez

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.

stale[bot] avatar Mar 13 '22 19:03 stale[bot]

still not stale ✨

scscgit avatar Mar 14 '22 11:03 scscgit

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.

stale[bot] avatar Jun 12 '22 18:06 stale[bot]

and yet it's not stale

scscgit avatar Jun 15 '22 15:06 scscgit

@mbrn any update on this or insights on how to implement ?

rikr2sanchez avatar Jun 15 '22 15:06 rikr2sanchez

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.

stale[bot] avatar Sep 24 '22 10:09 stale[bot]