# Auto Flow

The TileLayout arranges its tiles based on the [CSS Grid Layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout).

Each container determines its starting position in accordance with the following [auto-placement rules](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Auto-placement_in_CSS_Grid_Layout) and the [CSS grid-auto-flow](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Auto-placement_in_CSS_Grid_Layout) configuration option. To specify which auto flow algorithm to be used, use the [`autoFlow`](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/tilelayoutcomponent#autoflow) property of the TileLayout.

The TileLayout supports the following [`autoFlow`](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/tilelayoutcomponent#autoflow) values:

* `column` (Default)—Sets the `grid-auto-flow` CSS property of the TileLayout to `column`.
* `column-dense`—Sets the `grid-auto-flow` CSS property of the TileLayout to `column dense`.
* `row`—Sets the `grid-auto-flow` CSS property of the TileLayout to `row`.
* `row-dense`—Sets the `grid-auto-flow` CSS property of the TileLayout to `row dense`.
* `none`—Does not apply the `grid-auto-flow` CSS property. In this case the default behavior of the [CSS Grid Layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout) will be used.

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

## Disabling the Auto Flow

When the TileLayout [`autoFlow`](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/tilelayoutcomponent#autoflow) option is set to `none`, and none of the `row` and `col` properties of the individual tiles are set, all tiles will automatically be placed sequentially according to their [`order`](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/tilelayoutitemcomponent#order).

The following example demonstrates this scenario.

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

## Fixed Tile Position

You can place a tile at a fixed position by setting both its [`row`](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/tilelayoutitemcomponent#row) and [`col`](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/tilelayoutitemcomponent#col) options. In this way the tile will preserve its initial position and will not flow regardless of the currently set [`autoFlow`](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/tilelayoutcomponent#autoflow) algorithm. Tiles that are configured in this manner will always try to maintain their initial position during reordering or resizing. For additional details on how to handle such scenarios, refer to the corresponding articles about [tile reordering](https://www.telerik.com/kendo-angular-ui-develop/components/layout/tilelayout/reordering#handling-the-reorder-event) and [tile resizing](https://www.telerik.com/kendo-angular-ui-develop/components/layout/tilelayout/resizing#handling-the-resize-event).

> If several tiles have the same fixed position, they will overlap in the resulting TileLayout rendering.

The following example demonstrates how to set fixed positions for several tiles.

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

## Suggested Links

* [API Reference of the TileLayoutComponent](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/tilelayoutcomponent)
* [API Reference of the TileLayoutItemComponent](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/tilelayoutitemcomponent)
