Other columns not adjusting automatically to content when colWidths is set

Tags: #<Tag:0x00007f343b553568>


Referring to this link that was resolved before but I need a slightly different resolution: Default column width

Basically, I have for example, 10 columns in total in the table. I wish to have the first 5 columns fixed to 300px and the rest of the columns should automatically adjust according to its contents. However like the OP mentioned in the link above, when colWidths is set, the rest of columns that doesn’t have a valid index in the specified array will be given the default value.

Example: colWidths: [300, 300, 300, 300, 300]

This will give the first 5 columns a fixed width of 300px, but the rest will be given default values.

Thank you.

Hi @prakoso.santoso

Does this example https://jsfiddle.net/AMBudnik/hkzLem03/ meet your requirements?

Yes it does! Perfect, thanks a lot for your help!

Hi @prakoso.santoso

How is your development on this project? If you’d need anything, feel free to let me know.

I guess that we can close this topic as there’s no reply for more than a week.