# Displaying all Grid records by using the built-in DropDownList in the Pager

## Environment

<table>
    <tbody>
	    <tr>
	    	<td>Product</td>
	    	<td>Progress® Kendo UI for Angular Grid</td>
	    </tr>
    </tbody>
</table>

## Description

How to display all Grid records by using the built-in DropDownList in the Pager?

## Solution

1. Implement a [`kendoPagerTemplate`](https://www.telerik.com/kendo-angular-ui/components/pager/api/pagertemplatedirective) and define the built-in [`PagerPageSizesComponent`](https://www.telerik.com/kendo-angular-ui/components/pager/api/pagerpagesizescomponent) inside the template.

   ```html
   <ng-template kendoPagerTemplate>
       <kendo-pager-page-sizes></kendo-pager-page-sizes>
   </ng-template>
   ```

2. Create an array of [`PageSizeItem`](https://www.telerik.com/kendo-angular-ui/components/grid/api/pagesizeitem) objects and define an object with value `all`.

   ```ts
   public pageSizes: PageSizeItem[] = [
       { text: 'All', value: 'all' },
       ...
   ];
   ```

3. Finally, bind the [`pageSizes`](https://www.telerik.com/kendo-angular-ui/components/pager/api/pagerpagesizescomponent#pagesizes) property of the `PagerPageSizesComponent` to the collection of `PageSizeItem` objects.

   ```html
   <ng-template kendoPagerTemplate>
       <kendo-pager-page-sizes
           [pageSizes]="pageSizes"
       >
       </kendo-pager-page-sizes>
   </ng-template>
   ```

The following example demonstrates how to implement the described approach.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/knowledge-base/grid-pager-all-option/source.txt)
