ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: Bohuslav Stanek on September 19, 2016, 03:41:57 pm

Title: Width of table with lot of columns
Post by: Bohuslav Stanek on September 19, 2016, 03:41:57 pm
Hi,

I have problem with table with lot of columns. Columns on right side of table (column number 7 and more) ignore setting of flex width.
Here is example: http://jsfiddle.net/fabvd154/2/ (http://jsfiddle.net/fabvd154/2/) ... scroll horizontaly to right and you will see that columns has probably minimum width.
I look at code of pqgrid and I see that widths are computed only from visible part. If I change _minColWidth to lower value, it helps for more columns. But it is not final solution.
I need virtualX and virtualY turned on for scolling speed.

Is there some solution for columns width in table with lot of columns?
Title: Re: Width of table with lot of columns
Post by: Bohuslav Stanek on September 19, 2016, 07:26:03 pm
There is additional information. I also tried to set flex width to all columns. Without success: http://jsfiddle.net/fabvd154/5/ (http://jsfiddle.net/fabvd154/5/)
Title: Re: Width of table with lot of columns
Post by: paramvir on September 19, 2016, 07:28:48 pm
Flex width is applied only to rendered columns. So if you have lot of columns, virtualX: false won't be good for performance.

One workaround I found is to apply flex with every horizontal scroll.

http://jsfiddle.net/fabvd154/7/