set_scroll()

  • Parameter(s):
    • $scroll: Boolean value indicates wheter
    • $height: phpGrid height
  • Description:
    • Use vertical scroll to load data. The datagrid will not load everything at once and will hold all the items from the start through to the latest point ever visited. This prevents memory leaks from happening.
  • Remark:
    • Pagination is disabled when scroll is set to true.
    • The default height is 400 when scroll is true and should never be ‘100%’.
  • Example:
1
$dg -> set_scroll(true);