# Angular Grid Manual Paging

The manual paging gives the developer full control over the paging of the data records. Compared to the [paging with the built-in directive](https://www.telerik.com/kendo-angular-ui-develop/components/grid/paging/basics#automatic-data-processing), the manual approach provides greater transparency of the paging process because it requires you to handle the [Angular Grid](https://www.telerik.com/kendo-angular-ui-develop/components/grid) events manually. The manual paging is especially useful when you require additional customization of the paging logic.

When you enable the Grid paging functionality, you must also bind the component's [`data`](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/gridcomponent#data) property to a [`GridDataResult`](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/griddataresult) object. This object must contain information about the total number of records and the portion of items corresponding to the current page.

```ts
@Component({
    template: `
      <kendo-grid [data]="gridView" ... ></kendo-grid>
    `
})
export class AppComponent {
    public gridView: GridDataResult;
}
```

To enable paging:

1. Set the [`pageable`](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/gridcomponent#pageable), [`pageSize`](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/gridcomponent#pagesize), and [`skip`](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/gridcomponent#skip) properties.
2. Handle either of the following events:
   * [`pageChange`](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/gridcomponent#pagechange) event—Use this event when you enable only the paging data operation.
   * [`dataStateChange`](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/gridcomponent#datastatechange) event—Use this event when you enable more than one data operation, for example, paging and filtering. For more details, check the section on how to [handle multiple data operations](https://www.telerik.com/kendo-angular-ui-develop/components/grid/data-operations#handling-multiple-data-operations).

The steps above are identical regardless if you [process the data locally](https://www.telerik.com/kendo-angular-ui-develop/components/grid/paging/manual-paging#paging-local-data) or send a [request to the server](https://www.telerik.com/kendo-angular-ui-develop/components/grid/paging/manual-paging#paging-on-the-server) to paginate the data.

## Paging Local Data

To paginate local data, use the [`Array slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method or the built-in [`process()`](https://www.telerik.com/kendo-angular-ui-develop/components/data-query/api/process) function of the [Data Query](https://www.telerik.com/kendo-angular-ui-develop/components/data-query) package.

> When other data operations like sorting, filtering, or grouping, are also enabled, handle the `dataStateChange` event instead of `pageChange`  and use the `process()` method. For more details, check the section on how to [handle multiple data operations](https://www.telerik.com/kendo-angular-ui-develop/components/grid/data-operations#handling-multiple-data-operations).

The following example demonstrates how to use the Array `slice` method in the `pageChange` event handler to paginate the Grid data.

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

## Paging on the Server

Handle the [`pageChange`](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/gridcomponent#pagechange) or [`dataStateChange`](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/gridcomponent#datastatechange) event to send a request containing information about the current Grid state to the server. For more details, check the section on how to [handle multiple data operations using remote data](https://www.telerik.com/kendo-angular-ui-develop/components/grid/data-operations#processing-data-on-the-server).

## Suggested Links

* [Automatic Paging](https://www.telerik.com/kendo-angular-ui-develop/components/grid/paging/basics)
* [Data Operations](https://www.telerik.com/kendo-angular-ui-develop/components/grid/data-operations)
* [Pager Template](https://www.telerik.com/kendo-angular-ui-develop/components/grid/paging/pager-template)
* [API Reference of the GridComponent](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/gridcomponent)
* [API Index of the Grid](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api)
