Back to Devexpress

DxMaskedInput<T>.Value Property

blazor-devexpress-dot-blazor-dot-dxmaskedinput-1-4c2a6b29.md

latest2.0 KB
Original Source

DxMaskedInput<T>.Value Property

Specifies the Masked Input value.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public T Value { get; set; }

Property Value

TypeDescription
T

A delegate method that accepts the editor value type as a parameter.

|

Remarks

Use the Value property to specify an editor’s value or to bind the value to a data source object:

razor
<DxMaskedInput Value="12.3" Mask="@NumericMask.Currency"></DxMaskedInput>

<DxMaskedInput @bind-Value="@Value" Mask="@NumericMask.Currency"></DxMaskedInput>

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

Make sure the mask pattern fits the editor’s value type. For example, if an editor’s Value has an integer type, the editor only accepts integer values. A user cannot enter a fractional part of a number, even if the editor’s mask supports fractions.

To respond to the value change, handle the ValueChanged event.

The Masked Input supports the following data types:

See Also

DxMaskedInput<T> Class

DxMaskedInput<T> Members

DevExpress.Blazor Namespace