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
Question : If resizable = TRUE and colDef(width) are used, resizable disabled. #223
Currently setting width in colDef seems to disable resizable. minwidth and maxwidth are also forced.
Is this intentional? I want to width only as an initial value and allow resizable. but there seems to be no way.
If only min width and maxwidth are used, resizable is possible, but the initial value is minwidth.
Yes, this was intentional, or at least semi-intentional when resizing was reworked to respect the min and max widths of columns. Disabling resizing on fixed-width columns wasn't a primary intention, but came along with that rework. I can see how resizing would be useful on fixed-width columns though.
Unfortunately, resizing can't be easily reenabled on fixed-width columns without undoing the work to limit resizing to min/max widths. It's somewhat complicated, so I'll tag this as a feature request to look into later for now.
thank you for the reply. If modifying the width option is complicated, it may be an alternative to add initWidth to the option.
That is, if width is provided, initWidth is ignored(fixed width), if width is not provided and initWidth is provided, then initWidth is initialized. (in this case resizable should be possible)
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 Feb 20, 2022
Yes, this was intentional, or at least semi-intentional when resizing was reworked to respect the min and max widths of columns. Disabling resizing on fixed-width columns wasn't a primary intention, but came along with that rework. I can see how resizing would be useful on fixed-width columns though.
Unfortunately, resizing can't be easily reenabled on fixed-width columns without undoing the work to limit resizing to min/max widths. It's somewhat complicated, so I'll tag this as a feature request to look into later for now.
daeyoonlee commentedon Feb 21, 2022
thank you for the reply. If modifying the width option is complicated, it may be an alternative to add
initWidthto the option.That is, if width is provided, initWidth is ignored(fixed width), if width is not provided and initWidth is provided, then initWidth is initialized. (in this case resizable should be possible)
nteetor commentedon May 25, 2026
I strongly second having an initial or default width option. In my use case, I am loading saved column widths and either,
widthor
minWidthnteetor commentedon May 25, 2026
I've
openeddrafted a PR to hopefully address this issue.glin commentedon Jun 16, 2026
Done in #425: