ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: HardikKumar.Zaveri on April 08, 2019, 10:47:54 pm
-
Hi,
Can you please suggest, how can we set default vertical scrollbar for PQGrid globally? I mean is there a way where we can either setup css class or through Jquery we can set vertifical scrollbar for PQ Grid? So that when we add PQ Grid, it has vertical scrollbar appearing without setting up any property.
Also, if you can share global setting to setup horizontal scrollbar that would be great.
-
Scrollbars appear on their own when height/ width of content is more than grid display area. Scrollbars can'be forced to appear otherwise.
Grid has 2 type of settings:
height/ width: flex ( grid expands so as to display all content without scrollbars )
height / width: number ( fixed dimensions, so scrollable area )
Since you need scrollable grids, all you have to do is set fixed height/ width of either the individual grids
options = {
width: 400,
height: 400,
...
}
pq.grid( selector, options )
or all grids at once ( by overriding default options of the grid ).
$.paramquery.pqGrid.defaults.height = 400
$.paramquery.pqGrid.defaults.width = 400