Skip to content

Enhancement/Feature Request: allow resizing of columns even if width is specified #374

Description

@jzadra

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:

  1. 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
  2. Just because I want to set a default width does not mean I don't want the users to still have control over it.

Activity

  1. glin commented on Jul 1, 2024

    @glin
    Owner

    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.

  2. added this to the v0.5.0 milestone on Jun 16, 2026
  3. glin commented on Jun 16, 2026

    @glin
    Owner

    Done in #425:

    • 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions