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);

πŸŽ‰ phpGrid is now open source! – Free under the MIT license β€’ Download the latest release on GitHub

X