A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.telerik.com/kendo-react-ui/components/grid/paging below:

React Data Grid Paging Overview

New to KendoReact? Learn about KendoReact Free. KendoReact Data Grid Paging Overview

The KendoReact Data Grid provides a flexible paging mechanism that enables users to navigate large datasets efficiently. The built-in pager allows for numeric and input-based navigation, as well as customizable paging components.

Getting Started with the KendoReact Data Grid Paging

Pagination is enabled in the Grid by setting the pageable property. This adds navigation controls to the bottom of the Grid, allowing users to move between pages.

Enabling Paging

The KendoReact Grid supports paging in two modes:

Using the Built-in State Management for Paging

To enable basic numeric paging using the built-in state management mechanism, follow these steps:

  1. Enable the autoProcessData prop to allow the Grid to handle paging automatically.
  2. Set the pageable prop of the Grid to enable pagination.
  3. Set the defaultTake prop to define the number of items rendered initially.
  4. Use the defaultSkip prop to specify the number of items to be skipped initially, determining the starting page.

The following example demonstrates how to implement numeric paging using the built-in state management of the KendoReact Grid.

Using the Paging in Controlled Mode

To enable numeric paging in the KendoReact Grid and use it in controlled mode, follow these steps:

  1. Set the pageable prop of the Grid to enable paging.
  2. Use the skip prop used to track the current page.
  3. Set the pageSize or the take options of the Grid to specify how many items will be rendered on the page.
  4. Use the total prop to notify the Grid how many records are in total, which is needed to calculate the correct total pages.
  5. Handle the onPageChange or the onDataStateChange event of the Gridfor managing the paging state.
  6. Use the slice method or the built-in process method to manage paging logic.

The following example demonstrates how to implement basic numeric paging in controlled mode.

The Grid supports different pager types:

The PagerSettings object has the following fields:

To set the pager types, pass the PagerSettings object to the pageable option of the Grid.

Suggested Links

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4