Column Width Resize Bug

This issue has been tracked since 2022-07-29.

Hi, I have found a bug where every time I manually resize a column and then update the grid column props (changing the width), the width doesn't change. It seems as if the the grid only listens to that width property when you haven't manually resized it.

Steps To Reproduce:

  1. set the column width from props e.g.
columns = [{
...
      resizable: true,
      width: 200,
},...]
  1. manually resize the grid with your mouse
  2. update grid props (changing the width property)

Expected: column widths should change accordingly
Actual behaviour: the column widths stay the same, completely ignoring the width property

I am using react-data-grid version 7.0.0-canary.47, react/react-dom version ^16.13.1

faithod wrote this answer on 2022-08-03

is it possible to get this looked at urgently please?

m1lka wrote this answer on 2022-08-29

Hello! we have a similar problem. Is there any deadline for a decision?

amanmahajan7 wrote this answer on 2022-08-29

Duplicate issue #2042

More Details About Repo
Owner Name adazzle
Repo Name react-data-grid
Full Name adazzle/react-data-grid
Language TypeScript
Created Date 2015-03-06
Updated Date 2023-03-23
Star Count 5922
Watcher Count 129
Fork Count 2072
Issue Count 161

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date