ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: mshapiro on September 16, 2014, 05:24:47 am
-
I have an issue with making a grid resizable. If I specify the width as a numeric (width: 950) then resizing works normally. If I use "auto" or a percentage, then the grid width is rendered correctly but the resize icon disappears. I can resize the height by grabbing the lower border, but not the width. Is there a conflict with another setting? These are the layout options I am using:
resizable: true,
wrap: false,
hwrap: true,
columnBorders: true,
sortable: true,
numberCell: { show: true },
flexWidth: false,
freezeCols: 6,
flexHeight: false,
virtualX: true,
virtualY: true,
scrollModel: { horizontal: true, lastColumn: 'none' },
selectionModel: { type: 'none', subtype: 'incr', cbHeader: false, cbAll: true },
hoverMode: 'cell',
draggable: true,
width: 'auto' // resizing only works if a numeric value is used
Thanks.
-
That is by design and is the intended behavior.
When the grid width is auto or in percent, its width becomes dependent upon its parent and its width should not be resizable anymore independently of the parent. you could make the parent resizable in this case.
Example:
http://paramquery.com/pro/demos/fluid_popup