Columns (not headers) with specified width resize when sorting table causing misalignment

Columns (not headers) with specified width resize when sorting table causing misalignment

SaraHillmanSaraHillman Posts: 6Questions: 4Answers: 0

We have a DataTable with a lot of columns and the columns resize dynamically based on content. The issue is that when a User resizes a column to be smaller than the containing content and then sort the table, the width on the column that has the specified width is overridden and sizes dynamically but the header remains at the specified width so everything becomes misaligned. How can we make sure that the column width does not resize but persists the resized width on sort?

Here is a recording
https://www.loom.com/share/24af7356131f40e08050b1118c484ad4

Answers

  • kthorngrenkthorngren Posts: 19,926Questions: 26Answers: 4,698
    edited December 2022

    Datatables doesn't provide a way for the user to resize the columns. There is a third party plugin that provides this capability. I think its call colResize. Is this what you are using? You will need to ask the developer of your column resize code about this.

    Kevin

Sign In or Register to comment.