ParamQuery grid support forum
General Category => Bug Report => Topic started by: STXSupport on November 20, 2021, 12:34:29 am
-
We have an issue using grid.flex() when the last column does not have a width set.
All of our columns do not have the width set in the configs.
We are setting the gridConfig.paramquery property with
minWidth: 500,
width: '100%',
scrollModel: { autoFit: true }.
Code to flex grid:
$grid.on('pqGrid:create', function (e, ui) {
var grid = $grid.pqGrid('instance');
grid.flex();
});
Resulting grid
(http://GridFlexWithoutFixedWidth.png)
When we push a column with a fixed width into the columnConfigs as the last column then it works as expected
Resulting grid
(http://GridFlexWithFixedWidth.png)
Would you add the functionality to not use a fixed width on the last column when using grid.flex()?
Thank you
-
scrollModel: { autoFit: true } and flex() have contradictory purpose which can't be resolved simultaneously.
Please remove scrollModel: { autoFit: true } and flex() would work fine.
Please let me know if you need further assistance on this.
BTW your attachments are missing.