RadzenTileLayoutItem Class

A tile displayed inside a RadzenTileLayout. Each tile occupies a rectangular area of the grid defined by its Col, Row, ColSpan and RowSpan and can be moved and resized while the parent layout is in edit mode.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenTileLayoutItem

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenTileLayoutItem : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender

Examples

<RadzenTileLayout Columns="12" EditMode="true">
    <RadzenTileLayoutItem Title="Sales" Icon="paid" Col="1" Row="1" ColSpan="4" RowSpan="2">
        Content
    </RadzenTileLayoutItem>
</RadzenTileLayout>

Constructors

RadzenTileLayoutItemlink

A tile displayed inside a RadzenTileLayout. Each tile occupies a rectangular area of the grid defined by its Col, Row, ColSpan and RowSpan and can be moved and resized while the parent layout is in edit mode.

Declaration
public RadzenTileLayoutItem()

Properties

ChildContentlink

Gets or sets the body content of the tile.

Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the body content of the tile.

Collink

Gets or sets the one-based column the tile starts at.

Declaration
public int Col { get; set; }
Property Value
Type Description
intGets or sets the one-based column the tile starts at.

ColChangedlink

Gets or sets the callback raised when Col changes. Enables @bind-Col.

Declaration
public EventCallback<int> ColChanged { get; set; }
Property Value
Type Description
EventCallback<int>Gets or sets the callback raised when Col changes. Enables @bind-Col.

ColSpanlink

Gets or sets how many columns the tile spans.

Declaration
public int ColSpan { get; set; }
Property Value
Type Description
intGets or sets how many columns the tile spans.

ColSpanChangedlink

Gets or sets the callback raised when ColSpan changes. Enables @bind-ColSpan.

Declaration
public EventCallback<int> ColSpanChanged { get; set; }
Property Value
Type Description
EventCallback<int>Gets or sets the callback raised when ColSpan changes. Enables @bind-ColSpan.

HeaderTemplatelink

Gets or sets a custom header template. When set it replaces the default header built from Title and Icon.

Declaration
public RenderFragment HeaderTemplate { get; set; }
Property Value
Type Description
RenderFragmentGets or sets a custom header template. When set it replaces the default header built from Title and Icon.

Iconlink

Gets or sets the name of the icon displayed before the Title in the default header.

Declaration
public string Icon { get; set; }
Property Value
Type Description
stringGets or sets the name of the icon displayed before the Title in the default header.

Layoutlink

Gets or sets the parent layout.

Declaration
public RadzenTileLayout Layout { get; set; }
Property Value
Type Description
RadzenTileLayoutGets or sets the parent layout.

Rowlink

Gets or sets the one-based row the tile starts at.

Declaration
public int Row { get; set; }
Property Value
Type Description
intGets or sets the one-based row the tile starts at.

RowChangedlink

Gets or sets the callback raised when Row changes. Enables @bind-Row.

Declaration
public EventCallback<int> RowChanged { get; set; }
Property Value
Type Description
EventCallback<int>Gets or sets the callback raised when Row changes. Enables @bind-Row.

RowSpanlink

Gets or sets how many rows the tile spans.

Declaration
public int RowSpan { get; set; }
Property Value
Type Description
intGets or sets how many rows the tile spans.

RowSpanChangedlink

Gets or sets the callback raised when RowSpan changes. Enables @bind-RowSpan.

Declaration
public EventCallback<int> RowSpanChanged { get; set; }
Property Value
Type Description
EventCallback<int>Gets or sets the callback raised when RowSpan changes. Enables @bind-RowSpan.

Titlelink

Gets or sets the tile title displayed in the default header.

Declaration
public string Title { get; set; }
Property Value
Type Description
stringGets or sets the tile title displayed in the default header.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

Disposelink

Declaration
public override void Dispose()

GetComponentCssClasslink

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

OnInitializedlink

Declaration
protected override void OnInitialized()

OnParametersSetlink

Declaration
protected override void OnParametersSet()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙