# RadzenTileLayout Class

A dashboard layout that arranges [RadzenTileLayoutItem](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenTileLayoutItem.md) tiles on a configurable column/row grid. When EditMode is enabled tiles can be moved by dragging their header and resized from the bottom-right corner. Tile positions are snapped to grid cells and reported through two-way bindable parameters and the Change callback.

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md)
- RadzenTileLayout

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class RadzenTileLayout : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender
```

## Examples

```razor
<RadzenTileLayout Columns="12" RowHeight="80" EditMode="true" ShowGrid="true" Change=@OnChange>
    <RadzenTileLayoutItem Title="Sales" Col="1" Row="1" ColSpan="6" RowSpan="2">
        ...
    </RadzenTileLayoutItem>
    <RadzenTileLayoutItem Title="Visitors" Col="7" Row="1" ColSpan="6" RowSpan="2">
        ...
    </RadzenTileLayoutItem>
</RadzenTileLayout>
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenTileLayout()` | A dashboard layout that arranges [RadzenTileLayoutItem](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenTileLayoutItem.md) tiles on a configurable column/row grid. When EditMode is enabled tiles can be moved by dragging their header and resized from the bottom-right corner. Tile positions are snapped to grid cells and reported through two-way bindable parameters and the Change callback. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| AllowMove | `bool` | Gets or sets a value indicating whether tiles can be moved while in EditMode. |
| AllowOverlap | `bool` | Gets or sets a value indicating whether a tile can be moved or resized over another tile while in EditMode. When false a move or resize that would make the tile intersect another visible tile is blocked and the tile stays at its last valid position. Tiles that already overlap can still be dragged apart. |
| AllowResize | `bool` | Gets or sets a value indicating whether tiles can be resized while in EditMode. |
| Change | `EventCallback<RadzenTileLayoutItem>` | Gets or sets the callback raised after a tile has been moved or resized. |
| ChildContent | `RenderFragment` | Gets or sets the tiles to display. Should contain [RadzenTileLayoutItem](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenTileLayoutItem.md) components. |
| Columns | `int` | Gets or sets the number of columns in the grid. |
| EditMode | `bool` | Gets or sets a value indicating whether tiles can be moved and resized. When false the layout is read-only. |
| Gap | `double` | Gets or sets the gap between cells, in pixels. |
| RowHeight | `double` | Gets or sets the height of a single row, in pixels. |
| Rows | `int` | Gets or sets the number of rows in the grid. When 0 the grid grows automatically to fit its tiles. |
| ShowGrid | `bool` | Gets or sets a value indicating whether to render a grid overlay. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `Dispose()` | `void` |  |
| `GetComponentCssClass()` | `string` |  |

## Inherited Members

- From [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md): AddContextMenu, Attributes, ContextMenu, Culture, CurrentStyle, Debounce, DefaultCulture, DefaultUICulture, Element, GetCssClass, GetId, GetIdAttribute, IsJSRuntimeAvailable, JSRuntime, Localize, MouseEnter, MouseLeave, OnAfterRenderAsync, OnBecameInvisible, OnContextMenu, OnInitialized, OnMouseEnter, OnMouseLeave, RaiseContextMenu, RaiseMouseEnter, RaiseMouseLeave, Reference, SetParametersAsync, Style, UICulture, UniqueID, Visible
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

