ClassTileLayoutItem
The class for TileLayout items.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TileLayoutItem : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseTileLayoutItem
Implements:
Inherited Members
Constructors
TileLayoutItem()
Declaration
public TileLayoutItem()
Properties
Class
Applies additional CSS classes to the tile's wrapping element for custom styling. Use this to add specific styling, themes, or visual variations to individual tiles. Multiple classes can be specified separated by spaces (e.g., "my-tile highlighted important"). Classes are rendered alongside the default Telerik tile styling classes.
ColSpan
Sets how many columns the tile spans horizontally in the grid layout. Use 1 (default) for single-column tiles, 2 for tiles twice as wide, 3 for triple-width tiles, etc. Larger values create wider tiles that can accommodate more content or provide visual prominence. Works together with RowSpan to define the total tile size and affects how other tiles position around it.
Content
Defines the main content area of the tile including HTML, Blazor components, charts, grids, or any other content. The content area automatically adjusts its size based on the tile's RowSpan and ColSpan values.
Declaration
[Parameter]
public RenderFragment Content { get; set; }
Property Value
HeaderTemplate
Defines rich content for the tile header including HTML and Blazor components. Use this for complex headers with icons, rich content and custom styling that goes beyond plain text. Takes precedence over HeaderText when both are specified. The header serves as the drag handle when reordering is enabled, so interactive elements in the header template may not work or may interfere with drag operations.
Declaration
[Parameter]
public RenderFragment HeaderTemplate { get; set; }
Property Value
HeaderText
Sets the tile header content as plain text for simple titles and labels. Use this for basic text headers like "Sales Dashboard", "User Statistics", or "Recent Orders". For rich content with HTML, components, or complex formatting, use HeaderTemplate instead. The header appears in the tile's top section and serves as the drag handle when reordering is enabled.
Declaration
[Parameter]
public string HeaderText { get; set; }
Property Value
Id
Sets a unique identifier for the tile that is used in resize and reorder events, and also in TileLayout state management. This identifier appears in OnResize and OnReorder event arguments to help you determine which specific tile was modified by user interactions. Use meaningful values like "salesChart", "userStats", or "dashboard1" for easier event handling and debugging.
RowSpan
Sets how many rows the tile spans vertically in the grid layout. Use 1 (default) for single-row tiles, 2 for tiles twice as tall, 3 for triple-height tiles, etc. Larger values create taller tiles that can accommodate more content or provide visual emphasis. Works together with ColSpan to define the total tile size and affects how other tiles position around it.
Visible
Controls whether the tile is displayed in the layout.
When set to false
, the tile is completely hidden and does not occupy space in the grid.
Use this for conditional tile display, user-customizable dashboards, or dynamic content scenarios.
Hidden tiles maintain their position and size settings for when they become visible again.
The default value is true
.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public void Dispose()
Implements
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides