AnalyticalTable: How to Automatically Size Columns to Fit Cell Control? #3844
-
I am working on creating an AnalyticalTable with editable controls of different kinds in the cells. I want the width of the columns to be set so that they fit the control placed in the cell so I set the According to the description here this should resize each column to fit the cell contents. However, the columns are not being sized to fit the controls, and parts of them are being cut off:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
the |
Beta Was this translation helpful? Give feedback.
Hi @albert-li-fioneer
the
Grow
andSmart
mode only work for cells with plain text as content. I see that our documentation is currently not clear enough about this, so I created a PR to describe it better. Cells with content other than text are ignored, that's why in your case only the header text was taken into account and therefore "PCD" is, for example, much more narrow than "EXPIRY_DATE".When you're using components as content it's in most cases recommended to set a
width
or maybe even aminWidth
.