Skip to content

Set Scroll while freezing columns

Freeze column feature does not work when set scroll is set to TRUE because set_scroll uses the vertical scroll to load data via Ajax. Freeze column requires the datagrid to be loaded prior to overlays static block elements on top of the grid as the "freeze panel". However, when set_scroll is used, datagrid will not load everything at once and will only hold all the items from the start through to the latest point ever visited. 

To display vertical scroll while using freeze column set page size to a large number and then set the grid height short than the page size.

For instance

// set page size
$dg -> set_pagesize(1000);

// set height and weight of datagrid
$dg -> set_dimension(800, 600, false);

Feedback and Knowledge Base