ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: sudo on April 28, 2014, 11:00:28 pm
-
So how does one go about setting a fluid width for a table.... the parameter for the width seems to be only in px. I need em or %. Also noticed this when the js generates the tables html:
<div id="study_table" class="pq-grid ui-widget ui-widget-content ui-corner-all ui-resizable" style="width: 1178px;">.......</div>
the width(width: 1178px;) is set for the table directly inline and not accessible?
-
The width of a table can be set in %age. However you would need to refresh the grid upon resize of window/ grid's parent.
The width of grid can be accessed by
var wd= $grid.pqGrid("option" , "width");
or
var wd=$grid.width();
-
Latest version i.e. 2.1.0 supports fluid tables
http://paramquery.com/pro/demos/fluid_window