Author Topic: Fluid Width Table  (Read 2858 times)

sudo

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Fluid Width Table
« 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?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Fluid Width Table
« Reply #1 on: April 29, 2014, 10:14:18 am »
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();
« Last Edit: April 29, 2014, 10:17:25 am by paramquery »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Fluid Width Table
« Reply #2 on: May 28, 2014, 09:45:45 am »
Latest version i.e. 2.1.0 supports fluid tables

http://paramquery.com/pro/demos/fluid_window