Author Topic: Width of table with lot of columns  (Read 2250 times)

Bohuslav Stanek

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 14
    • View Profile
Width of table with lot of columns
« 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/ ... 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?

Bohuslav Stanek

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Width of table with lot of columns
« Reply #1 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/

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Width of table with lot of columns
« Reply #2 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/
« Last Edit: September 19, 2016, 07:31:39 pm by paramquery »