A responsive grid column component used within RadzenRow to create flexible, responsive layouts based on a 12-column grid system. RadzenColumn provides breakpoint-specific sizing, offsetting, and ordering capabilities for building adaptive interfaces. Must be used inside a RadzenRow component. The column width is specified as a value from 1-12, representing the number of grid columns to span. Supports responsive design through breakpoint-specific properties including Size for default column width (1-12), SizeXS/SM/MD/LG/XL/XX for breakpoint-specific widths, Offset for number of columns to skip before this column (creates left margin), OffsetXS/SM/MD/LG/XL/XX for breakpoint-specific offsets, Order to control visual order of columns (useful for reordering on different screen sizes), and OrderXS/SM/MD/LG/XL/XX for breakpoint-specific ordering. Columns automatically fill available space when no size is specified, and wrap to new lines when the total exceeds 12.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponentWithChildren.ChildContent
RadzenComponent.SetParametersAsync
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenColumn : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRenderBasic columns with fixed sizes:
<RadzenRow>
<RadzenColumn Size="6">Half width</RadzenColumn>
<RadzenColumn Size="6">Half width</RadzenColumn>
</RadzenRow>
Responsive columns that adapt to screen size:
<RadzenRow>
<RadzenColumn SizeXS="12" SizeSM="6" SizeMD="4" SizeLG="3">
Responsive content: Full width on mobile, half on tablet, third on desktop, quarter on large screens
</RadzenColumn>
</RadzenRow>
Columns with offset and ordering:
<RadzenRow>
<RadzenColumn Size="6" Offset="3">Centered with offset</RadzenColumn>
<RadzenColumn Size="6" Order="2" OrderMD="1">Reordered on medium screens</RadzenColumn>
</RadzenRow>A responsive grid column component used within RadzenRow to create flexible, responsive layouts based on a 12-column grid system. RadzenColumn provides breakpoint-specific sizing, offsetting, and ordering capabilities for building adaptive interfaces. Must be used inside a RadzenRow component. The column width is specified as a value from 1-12, representing the number of grid columns to span. Supports responsive design through breakpoint-specific properties including Size for default column width (1-12), SizeXS/SM/MD/LG/XL/XX for breakpoint-specific widths, Offset for number of columns to skip before this column (creates left margin), OffsetXS/SM/MD/LG/XL/XX for breakpoint-specific offsets, Order to control visual order of columns (useful for reordering on different screen sizes), and OrderXS/SM/MD/LG/XL/XX for breakpoint-specific ordering. Columns automatically fill available space when no size is specified, and wrap to new lines when the total exceeds 12.
public RadzenColumn()Gets or sets the number of columns to skip before this column (left margin spacing). Creates empty space to the left by pushing the column to the right.
public int? Offset { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the number of columns to skip before this column (left margin spacing). Creates empty space to the left by pushing the column to the right. |
Gets or sets the offset for large screens (breakpoint ≥ 1024px).
public int? OffsetLG { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the offset for large screens (breakpoint ≥ 1024px). |
Gets or sets the offset for medium screens (breakpoint ≥ 768px).
public int? OffsetMD { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the offset for medium screens (breakpoint ≥ 768px). |
Gets or sets the offset for small screens (breakpoint ≥ 576px).
public int? OffsetSM { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the offset for small screens (breakpoint ≥ 576px). |
Gets or sets the offset for extra large screens (breakpoint ≥ 1280px).
public int? OffsetXL { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the offset for extra large screens (breakpoint ≥ 1280px). |
Gets or sets the offset for extra small screens (breakpoint < 576px).
public int? OffsetXS { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the offset for extra small screens (breakpoint < 576px). |
Gets or sets the offset for extra extra large screens (breakpoint ≥ 1536px).
public int? OffsetXX { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the offset for extra extra large screens (breakpoint ≥ 1536px). |
Gets or sets the visual display order of this column within its row. Allows reordering columns without changing their position in markup. Values can be 0-12 or "first"/"last".
public string Order { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the visual display order of this column within its row. Allows reordering columns without changing their position in markup. Values can be 0-12 or "first"/"last". |
Gets or sets the column order for large screens (breakpoint ≥ 1024px).
public string OrderLG { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the column order for large screens (breakpoint ≥ 1024px). |
Gets or sets the column order for medium screens (breakpoint ≥ 768px).
public string OrderMD { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the column order for medium screens (breakpoint ≥ 768px). |
Gets or sets the column order for small screens (breakpoint ≥ 576px).
public string OrderSM { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the column order for small screens (breakpoint ≥ 576px). |
Gets or sets the column order for extra large screens (breakpoint ≥ 1280px).
public string OrderXL { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the column order for extra large screens (breakpoint ≥ 1280px). |
Gets or sets the column order for extra small screens (breakpoint < 576px).
public string OrderXS { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the column order for extra small screens (breakpoint < 576px). |
Gets or sets the column order for extra extra large screens (breakpoint ≥ 1536px).
public string OrderXX { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the column order for extra extra large screens (breakpoint ≥ 1536px). |
Gets or sets the default column width as a value from 1-12 in the grid system. If not specified, the column will automatically expand to fill available space.
public int? Size { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the default column width as a value from 1-12 in the grid system. If not specified, the column will automatically expand to fill available space. |
Gets or sets the column width for large screens (breakpoint ≥ 1024px). Overrides the default Size on desktops and larger devices.
public int? SizeLG { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the column width for large screens (breakpoint ≥ 1024px). Overrides the default Size on desktops and larger devices. |
Gets or sets the column width for medium screens (breakpoint ≥ 768px). Overrides the default Size on tablets and larger devices.
public int? SizeMD { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the column width for medium screens (breakpoint ≥ 768px). Overrides the default Size on tablets and larger devices. |
Gets or sets the column width for small screens (breakpoint ≥ 576px). Overrides the default Size on small tablets and larger devices.
public int? SizeSM { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the column width for small screens (breakpoint ≥ 576px). Overrides the default Size on small tablets and larger devices. |
Gets or sets the column width for extra large screens (breakpoint ≥ 1280px). Overrides the default Size on large desktops and larger devices.
public int? SizeXL { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the column width for extra large screens (breakpoint ≥ 1280px). Overrides the default Size on large desktops and larger devices. |
Gets or sets the column width for extra small screens (breakpoint < 576px). Overrides the default Size on mobile devices.
public int? SizeXS { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the column width for extra small screens (breakpoint < 576px). Overrides the default Size on mobile devices. |
Gets or sets the column width for extra extra large screens (breakpoint ≥ 1536px). Overrides the default Size on very large displays.
public int? SizeXX { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the column width for extra extra large screens (breakpoint ≥ 1536px). Overrides the default Size on very large displays. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
Gets the component CSS style.
protected string GetComponentStyle()
| Type | Description |
|---|---|
| string |
Gets the final CSS style rendered by the component. Combines it with a style custom attribute.
protected string GetStyle()
| Type | Description |
|---|---|
| string |