New to Telerik UI for BlazorStart a free 30-day trial

A component that lets you arrange content in a CSS Grid with rows, columns, gaps, and alignment. Supports defining rows/columns via GridLayoutRow/GridLayoutColumn, placing items with GridLayoutItem, configurable Width, RowSpacing/ColumnSpacing, and item alignment through HorizontalAlign/VerticalAlign. Children: GridLayoutItems, GridLayoutRows, GridLayoutColumns.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class TelerikGridLayout : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikGridLayout

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
public TelerikGridLayout()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

Properties

Defines the spacing between columns of the container.

C#
[Parameter]
public string ColumnSpacing { get; set; }

Defines the grid layout column definitions. Children: GridLayoutColumn.

C#
[Parameter]
public RenderFragment GridLayoutColumns { get; set; }

Defines the grid layout items. Children: GridLayoutItem.

C#
[Parameter]
public RenderFragment GridLayoutItems { get; set; }

Defines the grid layout row definitions. Children: GridLayoutRow.

C#
[Parameter]
public RenderFragment GridLayoutRows { get; set; }

Defines the horizontal align of the items in the grid column. Default value is Stretch.

C#
[Parameter]
public GridLayoutHorizontalAlign HorizontalAlign { get; set; }

Defines the spacing between rows of the container.

C#
[Parameter]
public string RowSpacing { get; set; }

Defines the vertical align of the items in the grid column. Default value is Stretch.

C#
[Parameter]
public GridLayoutVerticalAlign VerticalAlign { get; set; }

Defines the width of the container.

C#
[Parameter]
public string Width { get; set; }