ParamQuery grid support forum
General Category => Help for ParamQuery Grid (free version) => Topic started by: Walker on March 15, 2018, 09:27:08 am
-
Hi everyone,
I'm evaluating ParamGrid and ParamGridPro, I would like to know if it's easy to change a grid size at run time (after the grid has been initialized and filled)
Note :
I'm using a "dynamic layout" where the user can change the width / height of "windows" with splitters, that is why I need to adapt the grid's size
-
Easy way is to set grid size in %
Other way is to listen to resize event of splitters and refresh grid size.
-
Do you have a code example how to refresh the grid size (ex. in pixels)
-
$grid.pqGrid('option', 'height', '600px').pqGrid( 'refresh' );
-
Sorry but it doesn't seems to work
My Grid works, it's displayed correctly, but when I apply the code , the grid is emptied, all the rows disappear
I checked the height parameter, tested with a "direct" value (ex. "600px""), still the same problem
-
Sorry there can't be 'px' in the height option value.
$grid.pqGrid('option', 'height', 600).pqGrid( 'refresh' );
-
Thanks, without the "px" it works perfectly 8)