How to fix column width when sorted

I have a table record that has multiple columns that can be sorted by each column. When I sort by first column, the other columns changes their width, this goes the same when I sort by other columns. eg. 2nd, 3rd column.

Sorted by last name (ASC)

Sorted by last name (DESC)


Solution

Hi,

You set the width for all columns. I think right now all columns width are auto set.



Hope it will help you.

Solution

Vijay Malviya wrote:

Hi,

You set the width for all columns. I think right now all columns width are auto set.



Hope it will help you.

 

 Tried this solution, still didn't work.

Hi Willbye,


You can use CSS and set both max-width and min-width to the same value you want to lock the cell to.

It's enough if you only do this on the header cells.


Best regards,

João Marques

Vijay Malviya wrote:

Hi,

You set the width for all columns. I think right now all columns width are auto set.



Hope it will help you.

 

 I retried this with a bigger value and it worked, thanks!