GridLayout Overview
Updated on Oct 1, 2026
The Blazor GridLayout component allows you to arrange the contents of the component in rows and columns in a grid structure.
Creating GridLayout
- Add the
<TelerikGridLayout>tag to your razor page. - To define columns in the GridLayout, add one or more
<GridLayoutColumn>tags to the<GridLayoutColumns>collection. - To define rows in the GridLayout add one or more
<GridLayoutRow>tags to the<GridLayoutRows>collection. - Define one or more
<GridLayoutItem>tags to the<GridLayoutItems>collection.
A basic configuration of the Telerik GridLayout
Loading ...
Rows
Defining a new GridLayoutRow tag to the GridLayout renders a new row in the component. You can set their heights by using the Height parameter exposed on the <GridLayoutRow> tag.
Columns
Defining a new GridLayoutColumn tag to the GridLayout renders a new column in the component. You can set their widths by using the Width parameter exposed on the <GridLayoutColumn>.
Items
The GridLayout Item defines the content of the TelerikGridLayout. See the Items article for more information...
GridLayout Parameters
| Parameter | Type and Default value | Description |
|---|---|---|
Class | string | Adds a custom CSS class to the <div class="k-grid-layout"> element. |
Width | string | Controls the width of the GridLayout. |
ColumnSpacing | string | Controls the space between the columns in the GridLayout. |
RowSpacing | string | Controls the space between the rows in the GridLayout. |
HorizontalAlign | GridLayoutHorizontalAlign enum ( Stretch) | Controls the alignment of the inner items in the GridLayout column based on the X axis. |
VerticalAlign | GridLayoutVerticalAlign enum ( Stretch) | Controls the alignment of the inner items in the GridLayout column based on the Y axis. |