# Row Resizing

The Row Resizing functionality for the Grid enables you to resize one or more table rows.

For a runnable example, refer to the [demo on Row Resizing in the Grid](https://demos.telerik.com/aspnet-mvc/grid/row-resizing).

## Getting Started

To enable the row resizing functionality set the `.Resizable()` configuration:

```Razor HtmlHelper
    @(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.OrderViewModel>()
        .Name("grid")
        .Resizable(r => r.Rows(true))
        .Columns(columns =>
        {
            columns.Bound(p => p.ShipName).Title("Ship Name");
        })
        .DataSource(dataSource => dataSource
            .Ajax()
            .PageSize(10)
            .Read(read => read.Action("Orders_Read", "Grid"))
        )
        ...
    )
```

## Multiple Rows

The user can resize more than one row at the same time. To do so, set the `Selectable` configuration to enable multiple rows selection. Once the user has made multiple selections, they can drag the resize handle on one of the rows and the resize will affect the rest of the selected elements automatically.

```Razor HtmlHelper
    @(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.OrderViewModel>()
        .Name("Grid")
        .Selectable(selectable => selectable
            .Mode(GridSelectionMode.Multiple)
            .Type(GridSelectionType.Cell))
        .Resizable(r => r.Rows(true))
        .Columns(columns =>
        {
            columns.Bound(p => p.ShipName).Title("Ship Name");
        })
        .DataSource(dataSource => dataSource
            .Ajax()
            .PageSize(10)
            .Read(read => read.Action("Orders_Read", "Grid"))
        )
        ...
    )
```

## RowResize Event

The `RowResize` event fires when the user resizes one or more rows. You can subscribe to the event and use it to further customize the behavior of the Grid.

## Known Limitations

* The row resize feature does not work with the [drag & drop](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/row-drag-drop) functionality of the Grid. You can use only one of the two features at the same time.
* In a [Hierarchical](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/hierarchy) scenario, only the innermost child Grid(s) can have resizable rows. The row resizing feature must be disabled for all the parent Grid components.
* The row resizing functionality is not supported with [virtual scrolling](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/scrolling/virtual) as the virtual scrolling relies on calculating the average row height based on already loaded data. Having a large variance of row heights or an unknown number of rows that are not bound to data (such as group headers) can cause unexpected behavior.

## See Also

* [Row Resizing in the Telerik UI for ASP.NET MVC Grid](https://demos.telerik.com/aspnet-mvc/grid/row-resizing)
* [Grid events](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/events)
* [Server-side API](https://www.telerik.com/aspnet-mvc/documentation/api/grid)
* [Client-side API of the Grid](https://docs.telerik.com/kendo-ui/api/ui/grid)
