You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhancement/Feature Request: allow resizing of columns even if width is specified #374
Currently if resizeable = TRUE, but there are columns with colDef(width = ) specified, those columns are not resizable. This is the case even if the colDef() for a column with width set also explicitly sets resizable = T.
I think it would be great if there was a way to set the column default width while still allowing them to be resized.
My reasoning:
It seems confusing from a user perspective to be able to resize some columns, and then not be able to on others, as there is no visual indication of why some can be changed and others can't
Just because I want to set a default width does not mean I don't want the users to still have control over it.
I definitely agree, and I'm pretty sure there was a technical reason why fixed widths columns couldn't be resized. Looking back at my notes now, this came up before and I thought there wasn't an easy solution at the time: #223
I bet it is possible to get fixed width columns resizable, but it'll probably take some effort to look into.
colDef() gains an initWidth argument to set a column's initial width in pixels while keeping the column resizable. Unlike width, which sets a fixed width and disables resizing, initWidth only sets the starting width, so the column can still be resized within its minWidth and maxWidth. (@nteetor, #223, #374)
Activity
glin commentedon Jul 1, 2024
I definitely agree, and I'm pretty sure there was a technical reason why fixed widths columns couldn't be resized. Looking back at my notes now, this came up before and I thought there wasn't an easy solution at the time: #223
I bet it is possible to get fixed width columns resizable, but it'll probably take some effort to look into.
glin commentedon Jun 16, 2026
Done in #425: