# Angular TreeList Paging Basics

The Kendo UI for Angular TreeList paging functionality allows you to split the whole data set into smaller portions and to display only the items corresponding to the current page. The paging vastly improves the performance in scenarios that involve large data sets. The TreeList exposes multiple configuration options for customizing the look and feel of the paging feature.

You can enable paging by using two methods:

* [Automatic Data Processing](https://www.telerik.com/kendo-angular-ui/components/treelist/paging/basics#automatic-data-processing)—Allows you to implement paging (or other [data operations](https://www.telerik.com/kendo-angular-ui/components/treelist/data-operations)) with less code by using the built-in binding directives.
* [Manual Paging](https://www.telerik.com/kendo-angular-ui/components/treelist/paging/manual-paging)—Provides more control when implementing the paging feature.

## Automatic Data Processing

When you use the built-in binding directives for flat and hierarchical data, the TreeList performs the paging automatically for you.

> Further details on how the data binding directives work under the hood are available in the [data operations with the built-in directives](https://www.telerik.com/kendo-angular-ui/components/treelist/data-operations#automatic-data-processing) documentation section.

To enable paging:

1. Provide the collection to the built-in [`kendoTreeListFlatBinding`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/flatbindingdirective) or [`kendoTreeListHierarchyBinding`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/hierarchybindingdirective) directive depending on your data type.
2. Set the [`pageable`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#pageable) property to `true`.
3. Define the number of records per page by setting the [`pageSize`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#pagesize) property.

```html
<kendo-treelist
    [kendoTreeListFlatBinding]="data"
    idField="id"
    parentIdField="parentId"
    [pageable]="true"
    [pageSize]="5">
    <kendo-treelist-column field="name"></kendo-treelist-column>
</kendo-treelist>
```

The following example demonstrates the paging functionality with the `kendoTreeListFlatBinding` directive applied.

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

## Suggested Links

* [Manual Paging](https://www.telerik.com/kendo-angular-ui/components/treelist/paging/manual-paging)
* [Pager Settings](https://www.telerik.com/kendo-angular-ui/components/treelist/paging/pager-settings)
* [API Reference of the TreeListComponent](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent)
* [API Index of the TreeList](https://www.telerik.com/kendo-angular-ui/components/treelist/api)
