ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: youngvan on July 02, 2014, 05:52:49 pm

Title: Extra empty space in table with few columns
Post by: youngvan on July 02, 2014, 05:52:49 pm
Hi!

I have script which creates dynamical tables with 2 and up to 100 columns.
If table has only few columns after the last column it appears extra empty space. Is it possible to remove it or set autowidth for table?
I've tried to set flexWidth option, but it doesn't suitable in my case, because I need fixed width for columns.
Title: Re: Extra empty space in table with few columns
Post by: paramvir on July 02, 2014, 06:14:53 pm
1) Please mention the version.

2) whether you have been using virtual or non-virtual mode.

3) What's the value of scrollModel.
Title: Re: Extra empty space in table with few columns
Post by: youngvan on July 02, 2014, 07:29:57 pm
1) ParamQuery Pro v2.1.0
2) "virtualX":false, "virtualY":false. (My script activates this modes only if quantity of columns more than 10 or rows more than 100)
3) scrollModel : { pace : 'fast' }
Title: Re: Extra empty space in table with few columns
Post by: paramvir on July 02, 2014, 07:40:17 pm
Could you please attach a screenshot depicting the issue.
Title: Re: Extra empty space in table with few columns
Post by: youngvan on July 02, 2014, 07:41:09 pm
Here an example:
(http://s2.postimg.org/mhmqbzc2x/extra_space.jpg)
Title: Re: Extra empty space in table with few columns
Post by: paramvir on July 02, 2014, 07:52:48 pm
From the screenshot it appears your grid width is > than sum total of visible columns ( and there is no horizontal scrolling)

to remove empty space,

1) either you have to shrink the grid's width to sum total of column widths. use flexWidth : true in this case.

2) or expand columns to fit properly in grid. use scrollModel: { autoFit: true, other options... }

There is also a 3rd option scrollModel: { lastColumn: 'auto', ... } which works well in virtual mode and when there is horizontal scrolling.