Fill the remaining space in the SlickGrid column without filling the column width columns

Some of my columns need explicit width, while others just need to fill in all the free space.

There is a forceFitColumns option, but it seems to ignore any explicit widths that I set. I want my explicit widths to be respected, and for implicit ones, for convenience.

I assume that for this behavior I would have to disable the default column width and rewrite autoSizeColumns so as not to spoil my explicit column widths. I can imagine a convention in which you put '*' for the width of the column if you want it to be automatically set and not the default. Has anyone made a plug that has this feature?

+3
source share
1 answer

An implicit width designation of "*" would be really useful.

Meanwhile, you can also set minWidth and maxWidth in your explicitly sized columns so that they don't change using forceFitColumns.

+4
source

Source: https://habr.com/ru/post/1488646/


All Articles