A dashboard layout that arranges RadzenTileLayoutItem 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.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.SetParametersAsync
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.DefaultUICulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenTileLayout : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender<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>A dashboard layout that arranges RadzenTileLayoutItem 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.
public RadzenTileLayout()Gets or sets a value indicating whether tiles can be moved while in EditMode.
public bool AllowMove { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether tiles can be moved while in EditMode. |
Gets or sets a value indicating whether tiles can be resized while in EditMode.
public bool AllowResize { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether tiles can be resized while in EditMode. |
Gets or sets the callback raised after a tile has been moved or resized.
public EventCallback<RadzenTileLayoutItem> Change { get; set; }
| Type | Description |
|---|---|
| EventCallback<RadzenTileLayoutItem> | Gets or sets the callback raised after a tile has been moved or resized. |
Gets or sets the tiles to display. Should contain RadzenTileLayoutItem components.
public RenderFragment ChildContent { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the tiles to display. Should contain RadzenTileLayoutItem components. |
Gets or sets the number of columns in the grid.
public int Columns { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the number of columns in the grid. |
Gets or sets a value indicating whether tiles can be moved and resized. When false the layout is read-only.
public bool EditMode { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether tiles can be moved and resized. When false the layout is read-only. |
Gets or sets the gap between cells, in pixels.
public double Gap { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the gap between cells, in pixels. |
Gets or sets the height of a single row, in pixels.
public double RowHeight { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the height of a single row, in pixels. |
Gets or sets the number of rows in the grid. When 0 the grid grows automatically to fit its tiles.
public int Rows { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the number of rows in the grid. When 0 the grid grows automatically to fit its tiles. |
Gets or sets a value indicating whether to render a grid overlay.
public bool ShowGrid { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether to render a grid overlay. |