DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### enablePaging(mode,pageSize,pagesInGrp,pagingControlsContainer,showRecInfo,pagingStateContainer)

Required library edition:
Required library file: dhtmlxgrid_pgn.js

enable smart paging mode

- mode - true|false - enable|disable mode
- pageSize - count of rows per page
- pagesInGrp - count of visible page selectors
- pagingControlsContainer - ID or container which will be used for showing paging controls
- showRecInfo - true|false - enable|disable showing of additional info about paging state
- pagingStateContainer - ID or container which will be used for showing paging state

       //enable paging with 10 rows per page
       mygrid.enablePaging(true,10,5,"pagingArea",true,"recinfoArea");

Note this method is incompatible with enableSmartRendering and enableDistributedParsing methods

See also: setPagingSkin, setPagingTemplates, setPagingWTMode, getStateOfView