# Tiles Resizing

By default, the resizing functionality of the TileLayout is disabled.

To enable it, set the [`resizable`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutcomponent#resizable) option of the component to `true`. The respective new positions of the affected tiles, resulting from a resize operation, will depend on the current value of the TileLayout [`autoFlow`](https://www.telerik.com/kendo-angular-ui/components/layout/tilelayout/auto-flow) option.

The following example demonstrates the resizing functionality in action.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/tilelayout/resizing/main/source.txt)

## Disabling Resizing

When the [`resizable`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutcomponent#resizable) option of the TileLayout is enabled, you can fine-tune the behavior by disabling the resizing of specific tiles. Each nested [`TileLayoutItem`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutitemcomponent) component has its own [`resizable`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutitemcomponent#resizable) property. To disable the resizing of a specific tile, set this option to `false`.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/tilelayout/resizing/source.txt)

## Programmatic Resizing

You have full control over the size of the tiles which can be manually updated through their [`rowSpan`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutitemcomponent#rowspan) and [`colSpan`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutitemcomponent#colspan) options.

> Updating the row and column span of the tiles is possible even when their [`resizable`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutcomponent#resizable) option is set to `false`.

The following example demonstrates how to resize an item programmatically.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/tilelayout/resizing/programmatic/source.txt)

## Handling the resize Event

The [`resize`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutcomponent#resize) event of the TileLayout is fired when the end user finishes dragging the resize handler of a tile. The exposed information in the event handler allows you to specify the position and the size of any tile in the TileLayout based on custom logic. Alternatively, you can prevent the operation completely if a required condition is not met.

The [TileLayoutResizeEvent](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutresizeevent) argument exposes the following event data:

* `item`—The currently resized tile.
* `items`—A collection of all [`TileLayoutItem`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutitemcomponent) components in their current order.
* `oldColSpan`—The previous [`colSpan`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutitemcomponent#colSpan) value of the resized tile.
* `oldRowSpan`—The previous [`rowSpan`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutitemcomponent#rowSpan) value of the resized tile.
* `newColSpan`—The new [`colSpan`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutitemcomponent#colSpan) value of the resized tile.
* `newRowSpan`—The new [`rowSpan`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutitemcomponent#rowSpan) value of the resized tile.

The following example demonstrates how to change the position of the items after resizing.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/tilelayout/resizing/custom/source.txt)

## Suggested Links

* [Auto Flow](https://www.telerik.com/kendo-angular-ui/components/layout/tilelayout/auto-flow)
* [Tiles Reordering](https://www.telerik.com/kendo-angular-ui/components/layout/tilelayout/reordering)
* [API Reference of the TileLayoutComponent](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutcomponent)
* [API Reference of the TileLayoutItemComponent](https://www.telerik.com/kendo-angular-ui/components/layout/api/tilelayoutitemcomponent)
