set_dimension()

  • Parameter(s):
    • $width: Datagrid width
    • $height: Datagrid height. The default is 100% which expanses grid vertically to the entire browser height
    •  $shrinkToFit: true or false. If set to false, horizontal bar will appear when the total width of grid is wider than the dimesion width. The default is true.
  • Description:
    • Set the overall height and width of phpGrid
  • Remark:
    • It is recommended to set $shrinkToFit to false when there are a large number of columns to display.
  • Example:
1
$dg -> set_dimension(800, 600);