Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxDataEditor<T>.SizeMode Property

Specifies an editor size.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(null)]
[Parameter]
public SizeMode? SizeMode { get; set; }

#Property Value

Type Default Description
Nullable<SizeMode> null

A SizeMode enumeration value.

Available values:

Name Description
Small

Small size.

Medium

Medium size.

Large

Large size.

#Remarks

Use the SizeMode property to specify an editor size. The following size modes are supported:

Size mode

Description

Not specified (NULL)

An editor inherits its size from the parent component. For example, if editor is located within the Data Grid’s Edit Form, display template or pager, editor’s size is controlled by the InnerComponentSizeMode property.
If the parent component’s size mode is not specified or you use a stand-alone editor, editor’s size is specified by the SizeMode global option.

Large

An editor size is large.

Medium

An editor size is medium.

Small

An editor size is small.

The following code snippet applies different size modes to the Spin Edit component.

Razor
<DxSpinEdit @bind-Value="@DecimalValue" SizeMode="SizeMode.Small"></DxSpinEdit>

<DxSpinEdit @bind-Value="@DecimalValue" SizeMode="SizeMode.Medium"></DxSpinEdit>

<DxSpinEdit @bind-Value="@DecimalValue" SizeMode="SizeMode.Large"></DxSpinEdit>

@code {
    Decimal DecimalValue { get; set; } = 15;
}

Spin Edit Size Modes

See Also