# Paging

The TreeList supports client-side paging for large sets of data.

To enable the paging functionality of the TreeList, configure the [`pageable`](https://docs.telerik.com/kendo-ui/api/ui/treelist/configuration/pageable) settings.

> Remember to set a [`pageSize`](https://www.telerik.com/kendo-jquery-ui/documentation/api/data/datasource/configuration/pagesize). You can define a `pageSize` in the `pageable` or in the [`dataSource`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/treelist/configuration/datasource) settings. If an already existing dataSource instance is passed to the TreeList, then the `pageSize` option has to be set in the dataSource settings and not in the `pageable` settings.

```
$(document).ready(function () {
    var service = "https://demos.telerik.com/service/v2/core";

    $("#treelist").kendoTreeList({
        dataSource: {
            transport: {
                read: {
                    url: service + "/EmployeeDirectory/All"
                }
            },
            schema: {
                model: {
                    id: "EmployeeId",
                    parentId: "ReportsTo",
                    expanded: true,
                    fields: {
                        ReportsTo: { nullable: true },
                        EmployeeId: { type: "number" },
                        HireDate: { field: "HireDate", type: "date" }
                    }
                }
            }
        },
        height: 540,
        filterable: true,
        sortable: true,
        columns: [
            {
                field: "FirstName", title: "Name",
                template: "#: FirstName # #: LastName #"
            },
            { field: "Position" },
            { field: "HireDate", title: "Hire Date", format: "{0:MMMM d, yyyy}" }
        ],
        pageable: {
            pageSize: 15,
            pageSizes: true
        }
    });
});
```

## See Also

* [Client-Side Paging in the TreeList (Demo)](https://demos.telerik.com/kendo-ui/treelist/client-side-paging)
* [TreeList JavaScript API Reference](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/treelist)
