• 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:
$dg -> set_dimension(800, 600);

Announcing phpGrid v7.6!