# Paging

The ListView provides built-in integration with the [Kendo UI for Angular Pager component](https://www.telerik.com/kendo-angular-ui/components/pager), which allows you to quickly set up the pager content and handle local data with the built-in page change.

To enable paging:

1. Set the [`pageable`](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewcomponent#pageable), [`pageSize`](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewcomponent#pagesize), and [`skip`](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewcomponent#skip) options of the ListView.

2. Handle the page changes in either of the following ways:

* Use the built-in [`kendoListViewBinding`](https://www.telerik.com/kendo-angular-ui/components/listview/api/databindingdirective) directive. It handles page changes internally and works for local data only.
* Manually handle the [`pageChange`](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewcomponent#pagechange) event of the ListView. It is suitable for remote binding.

## Binding Directive

To use the built-in binding directive, apply the [`kendoListViewBinding`](https://www.telerik.com/kendo-angular-ui/components/listview/api/databindingdirective) directive to the ListView. The directive selector accepts as a single argument a plain array of objects (`any[]`).

The following example demonstrates the directive in action.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/listview/paging/binding-directive/source.txt)

## Remote Binding

When you deal with a large data set, it's better to perform the paging on the server and fetch only parts of the data on demand.

To configure the ListView for such a scenario, you have to handle the following:

1. Provide the ListView [`data`](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewcomponent#data) input with a [`ListViewDataResult`](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewdataresult) object with the current batch of data items and information for the total number of records that are available on the server.
2. Hook to the [`pageChange`](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewcomponent#pagechange) event and manually update the [`pageSize`](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewcomponent#pagesize) and [`skip`](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewcomponent#skip) property values.
3. (Optional) Update the [`loading`](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewcomponent#loading) property value to render a loading indicator while the data is being fetched.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/listview/paging/remote-binding/source.txt)

## Pager Options

You can customize the built-in pager content according to the application needs. To configure the pager, pass a [`PagerSettings`](https://www.telerik.com/kendo-angular-ui/components/listview/api/pagersettings) object to the [`pageable`](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewcomponent#pageable) input of the ListView.

The [`PagerSettings`](https://www.telerik.com/kendo-angular-ui/components/listview/api/pagersettings) object has the following fields:

* [`position`](https://www.telerik.com/kendo-angular-ui/components/listview/api/pagersettings#position)—Sets the pager position relative to the ListView content section.
* [`pageSizeValues`](https://www.telerik.com/kendo-angular-ui/components/listview/api/pagersettings#pagesizevalues)—Sets the list of drop-down values from which the end-user can choose for current page size. If the input is set to `false`, the page sizes drop-down will not be rendered.
* [`buttonCount`](https://www.telerik.com/kendo-angular-ui/components/listview/api/pagersettings#buttoncount)—Sets the maximum numeric buttons count before the buttons are collapsed.
* [`info`](https://www.telerik.com/kendo-angular-ui/components/listview/api/pagersettings#info)—Toggles the information about the current page and the total number of records.
* [`previousNext`](https://www.telerik.com/kendo-angular-ui/components/listview/api/pagersettings#previousnext)—Toggles the **Previous** and **Next** buttons.
* [`type`](https://www.telerik.com/kendo-angular-ui/components/listview/api/pagersettings#type)—Accepts the `numeric` (buttons with numbers) and `input` (input for typing the page number) values.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/listview/paging/configuration/source.txt)

## Suggested Links

* [API Reference of the ListViewComponent](https://www.telerik.com/kendo-angular-ui/components/listview/api/listviewcomponent)
* [API Reference of the DataBindingDirective](https://www.telerik.com/kendo-angular-ui/components/listview/api/databindingdirective)
* [API Reference of the PagerSettings](https://www.telerik.com/kendo-angular-ui/components/listview/api/pagersettings)
* [API Index of the ListView](https://www.telerik.com/kendo-angular-ui/components/listview/api)
