Column width driven from column name

Is it possible to set the column width from the column name?

I prefer the width I define for a specific column to stay within the same column when the number of elements are not static.

  "colWidths": [
      305,
      115,
      121,
      92,
      92,
      92,
      92,
      92,
      92,
      92,
      92,
      92,
      92,
      92,
      92,
      300
    ],

Nope. This is driven from index only.

It can be a bit confusing in a view if some columns are hidden and subset selection is enabled to switch column set as the hidden columns will be retained which might not make any sense at all with the new selection.

For now it is what it is. You are welcome to raise a RFE to have an option to base widths on column header name like we do for column formats. But it is like this for a reason as the column headers might not be unique (due to non-alias display caption), or might be repeated in the case of stacked dimensions. So it might not be possible to identify the column index to set the width from a name.