# Change the Pager DropDown Width

## Environment

<table>
    <tbody>
        <tr>
            <td>Product</td>
            <td>
                Pager for Blazor, <br />
                Grid for Blazor, <br />
                ListView for Blazor
            </td>
        </tr>
    </tbody>
</table>

## Description

How to change the pager dropdown list width and make it wider? The page size number in the DropDownList is cut off when it contains three or more digits.

## Solution

Use [custom CSS to override the default width](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/override-theme-styles) in the Telerik Blazor theme.

1. Set a custom `Class` to the component (Pager, Grid or ListView).
2. Target the `.k-pager-sizes .k-dropdownlist` elements inside the component(s) with this custom `Class`.

> caption Change the Pager dropdown width

```RAZOR
<h2>Pager in Grid:</h2>

<TelerikGrid Class="wider-pagesizes"
             Data="@GridData"
             TItem="@Product"
             Pageable="true">
    <GridSettings>
        <GridPagerSettings PageSizes="@PageSizes" />
    </GridSettings>
    <GridColumns>
        <GridColumn Field="@nameof(Product.Name)" />
    </GridColumns>
</TelerikGrid>

<h2>Standalone Pager:</h2>

<TelerikPager Class="wider-pagesizes"
              Total="50"
              PageSizes="@PageSizes" />

<style>
    .wider-pagesizes .k-pager-sizes .k-dropdownlist {
        width: 12em;
    }
</style>

@code {
    private List<Product> GridData { get; set; }

    private List<int?> PageSizes { get; set; } = new List<int?> { 10, 20, null };

    protected override void OnInitialized()
    {
        GridData = new List<Product>();

        for (int i = 1; i <= 50; i++)
        {
            GridData.Add(new Product()
            {
                Id = i,
                Name = "Product " + i
            });
        }
    }

    public class Product
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }
}
```

To target all pager instances in the app, you can skip the custom CSS class:

> caption Change the width of all pager dropdowns

```css
.k-pager .k-pager-sizes .k-dropdownlist {
    width: 12em;
}
```

## See Also

* [Telerik Themes Overview](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/overview)
