React Tree Grid Pagination Overview
The Ignite UI for React Pagination feature in React Tree Grid is used to split a large set of data into a sequence of pages that have similar content. React grid pagination improves user experience and data interaction. IgrTreeGrid
pagination is configurable via a separate component projected in the grid tree by defining a IgrPaginator
tag, similar to adding of a column. As in any React table, the pagination in the React Tree Grid supports template for custom pages.
React Tree Grid Pagination Example
The following example represents IgrTreeGrid
pagination and exposes the options usage of items per page and how paging can be enabled. The user can also quickly navigate through the IgrTreeGrid
pages via "Go to last page" and "Go to first page" buttons.
.gridSize {
--ig-size: var(--ig-size-small);
}
<IgrTreeGrid className="gridSize" height="500px" width="100%">
<IgrPaginator key="paginator" perPage="10">
</IgrPaginator>
</IgrTreeGrid>
Usage
The IgrPaginator
component is used along with the IgrTreeGrid
component in the example below, but you can use it with any other component in case paging functionality is needed.
const selectOptions = [5, 15, 20, 50];
<IgrTreeGrid className="gridSize">
<IgrPaginator key="paginator" perPage={10} page={1} selectOptions={selectOptions}>
</IgrPaginator>
</IgrTreeGrid>
Paginator Component Demo
API References
Additional Resources
- Virtualization and Performance
- Filtering
- Sorting
- Summaries
- Column Moving
- Column Pinning
- Column Resizing
- Selection
Our community is active and always welcoming to new ideas.