Automatic paging in Grid control

Official Content
This documentation is valid for:

Automatic paging implies that paging is implemented in the generated code without the need to program anything.

For Web applications, when the Rows property for a grid is anything other than zero, GeneXus will perform automatic paging. That is, the paging buttons (FirstPage, PreviousPage, NextPage, and LastPage) are automatically added to the grid footer and they will behave as expected.

i2016_06_08_12_48_481_png

However, if any of those events is included explicitly in the GeneXus code, automatic paging will not be available. See Grid paging on the Web for details on programming paging manually.

Styles for paging buttons in Web applications

In the Theme, there is a class called PagingButtons (child of Image) where you can configure the appearance of the automatic paging buttons.

i2016_06_07_20_02_541_png

Notes

  • Automatic paging is supported in grids with and without Base Table.
  • For those cases when the grid does not have a base table or the filters cannot be evaluated on the server side, the LastPage button doesn't work. The GotoPage methodRecordCount property aren't implemented either in that case.
  • In Smart Device apps, when the Rows property is set to a value other than zero, grid paging behaves as Infinite scrolling.

Scope

Controls: 
Interfaces: Web

See Also

Infinite scrolling