ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: RedBully on May 06, 2015, 03:10:11 pm
-
Please can you confirm how to change the height of the grid after initialisation.
I have tried using
$("#grid_filter").pqGrid("option", "height", 300);
as suggested by the help:
http://paramquery.com/pro/api#option-height (http://paramquery.com/pro/api#option-height)
but it is not working. Please see jsfiddle here for example:
http://jsfiddle.net/RedBully/b6b710mz/101/ (http://jsfiddle.net/RedBully/b6b710mz/101/)
I plan to have a height of flex but to change the height to 500px if the flex height exceeds 500px. Alternatively, do you plan to implement a maxHeight option for the grid?
Thanks in advance
-
My current work around is to count the number of rows in the grid before initialisation and to change the options before initialising the grid. This is a weak solution because the heights of the individual rows can vary.
-
Refresh is required after change in height option.
http://jsfiddle.net/b6b710mz/103/
Yes, max-height is a planned feature, it would be available in one of the upcoming versions.
-
Thank you for this. Please could you update the documentation to say the same about the 'refresh'.
-
will the next version also have a "maxwidth" setting?
-
I've added maxWidth to the list but it's a low priority feature as of now, it may not be present in the immediately next version.