ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: nzxgq0 on October 29, 2020, 01:25:24 pm
-
Hello,
I have a grid which allows user to select the columns to display. Two issues:
1. Is there a way to automatically adjust the grid's column width based on user's selection?
2. How to set the font size or the row height on the selection dialog?
Thanks,
NZXGQ0
-
1. I'm not sure what you mean by "automatically adjust the grid's column width based on user's selection".
There is API method flex() to automatically adjust the grid column width according to its contents. You can all this method from any event you want.
https://paramquery.com/pro/api#method-flex
2. Selection dialog view is based on pqgrid, so all the pqgrid options are also applicable to it.
Please use menuUI.gridOptions option to pass pqgrid options to it.
https://paramquery.com/pro/api#option-menuUI
e.g., to increase the row height:
menuUI: {
gridOptions: {
rowHt: 30
}
}