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

DxMaskedInput<T>.Value Property

Specifies the Masked Input value.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public T Value { get; set; }

#Property Value

Type Description
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