# GridLayout Overview

The <a href="https://www.telerik.com/blazor-ui/gridlayout" target="_blank">Blazor GridLayout component</a> allows you to arrange the contents of the component in rows and columns in a grid structure.

## Creating GridLayout

1. Add the `<TelerikGridLayout>` tag to your razor page.
2. To define columns in the GridLayout, add one or more `<GridLayoutColumn>` tags to the `<GridLayoutColumns>` collection.
3. To define rows in the GridLayout add one or more `<GridLayoutRow>` tags to the `<GridLayoutRows>` collection.
4. Define one or more `<GridLayoutItem>` tags to the `<GridLayoutItems>` collection.

> caption A basic configuration of the Telerik GridLayout

<demo metaUrl="client/gridlayout/overview/example-1/" height="320"></demo>

## 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...](https://www.telerik.com/blazor-ui/documentation/components/gridlayout/items)

## GridLayout Parameters

<style>
    .article table {
        table-layout: auto;
        word-break: normal;
    }
</style>

| 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 <br /> (`Stretch`) | Controls the alignment of the inner items in the GridLayout column based on the X axis. |
| `VerticalAlign`   | `GridLayoutVerticalAlign` enum <br /> (`Stretch`)   | Controls the alignment of the inner items in the GridLayout column based on the Y axis. |

## Next Steps

* [Explore the GridLayout Items](https://www.telerik.com/blazor-ui/documentation/components/gridlayout/items)

## See Also

* [Live Demo: GridLayout](https://demos.telerik.com/blazor-ui/gridlayout/overview)
* [GridLayout API Reference](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.components.telerikgridlayout)
