Skip to main content

DxRadioGroup<TData, TValue>.ItemLabelPosition Property

Specifies the position of item labels relative to clickable circles.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(LabelPosition.Right)]
[Parameter]
public LabelPosition ItemLabelPosition { get; set; }

Property Value

Type Default Description
LabelPosition Right

A LabelPosition enumeration value.

Available values:

Name Description
Right

The checkbox’s child content is displayed to the right of the check mark.

Left

The checkbox’s child content is displayed to the left of the check mark.

Remarks

Use the ItemLabelPosition and ItemAlignment properties to change content position:

<div style="width:400px">
    <DxRadioGroup Items="@Languages"
                  @bind-Value="@PreferredLanguage"
                  ItemLabelPosition="LabelPosition.Left"
                  ItemAlignment="CheckBoxContentAlignment.Right">
    </DxRadioGroup>
</div>

@code {
    string PreferredLanguage { get; set; } = "English";
    IEnumerable<string> Languages = new[] { "English", "简体中文", "Español", "Français", "Deutsch" };
}

RadioGroup - Content Position

See Also