135
Views
4
Comments
Solved
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)


2026-01-15 03-18-59
Vijay Malviya
Solution

Hi,

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



Hope it will help you.

UserImage.jpg
Wilbye Descalsota

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.

UserImage.jpg
Wilbye Descalsota

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!

2018-10-29 08-31-03
João Marques
 
MVP

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.