Hi Team,
I have defined the width for columns using colWidths: [100, 200, 100, …]
is there way to modify the width of all columns one by one based on some logic at runtime?
the problem I see with colWidths is when column is moved, the colWidth of that column is not moved. so if column A was originally had size 100 and if it is moved, i see the column A is having size of 200 now.
thanks
Ashmi
use option autoColumnSize
Hi @rohit.parwal
The values are defined for columns visually so the widths stay the same after you move columns.
If you wish to set a value for each column and keep it while moving you would need to pass the widths via afterColumnMove
hook to the updateSettings
> colWidths
.
yes, I figured that. I thought there could be other way of doing it, so just wanted to check with you. thanks.
Yes, currently this is the only way.