In the preceding snapshot, the browser data is displayed in the grid layout. But, you can observe that there is no header or footer to summarize the context. The header and footer facets are available using p-header and p-footer tags.
To improve the usability on large sets, DataGrid provides a pagination feature to display the next chunk of data through page navigation. This feature is provided by enabling the paginator property and by setting the rows attribute. Just like any other data components, the pagination features such as pageLinks, rowsPerPageOptions, paginatorPosition, and totalRecords are available for this customization.
To handle huge amounts of data, DataGrid supports a lazy loading feature to access this huge amount of data in chunks. This feature is provided by enabling the lazy attribute. Also the lazy loading method should be called on the pagination operation using the onLazyLoad event.
The component class which defines the lazy...