Back to Devexpress

DxDataEditor<T>.SizeMode Property

blazor-devexpress-dot-blazor-dot-base-dot-dxdataeditor-1.md

latest2.2 KB
Original Source

DxDataEditor<T>.SizeMode Property

Specifies an editor size.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Nullable<SizeMode>null

A SizeMode enumeration value.

|

Available values:

NameDescription
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;
}

See Also

DxDataEditor<T> Class

DxDataEditor<T> Members

DevExpress.Blazor.Base Namespace