Specifies the options of a grid pager.
A pager is a grid element that allows the user to navigate through grid pages and change their size at runtime. By default, the pager is visible if paging is enabled and you do not use virtual or infinite scrolling. To change the pager's visibility explicitly, use its visible option.
The pager consists of a page navigator and a page size selector. The page navigator contains the numbers of pages. Clicking a page number navigates the user to the page. The page size selector contains the page sizes that can be selected. They are specified by the allowedPageSizes option of the pager configuration object. The page size selector is hidden by default. To make it visible, assign true to the pager's showPageSizeSelector option.
When a grid displays data page by page, you can specify the default size of pages using the pageSize option. Additionally, you can enable a user to change the page size at runtime. To do this, make the page size selector visible by setting the pager.showPageSizeSelector option to true. After that, specify the sizes that can be selected in it by assigning an array of these sizes to the pager.allowedPageSizes option. If you do not specify this option, the allowed page sizes will be determined automatically depending on how large the grid data source is.
Specifies whether or not to display the text accompanying the page navigator. This text is specified by the infoText option.
Although the page navigator already contains clickable page numbers, you can also supply it with buttons that navigate a user to the previous or next page. To do this, set the showNavigationButtons option to true.
If you want a user to be able to change the page size at runtime, make the page size selector visible by setting the showPageSizeSelector option to true. Note that the pager should be visible as well, because the page size selector is a part of it. To specify page sizes that can be selected, set the allowedPageSizes option.