Back to Devexpress

DxMaskedInput<T>.InputDelay Property

blazor-devexpress-dot-blazor-dot-dxmaskedinput-1-e7eb5afa.md

latest1.7 KB
Original Source

DxMaskedInput<T>.InputDelay Property

Specifies a delay between user changes and the actual value update. Applied for the BindValueMode.OnDelayedInput mode only.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public int? InputDelay { get; set; }

Property Value

TypeDescription
Nullable<Int32>

A delay in milliseconds.

|

Remarks

You can set the editor’s BindValueMode property to OnDelayedInput to delay a value update. The InputDelay property specifies the delay between user changes and when the value updates. The default value is 500 ms.

The following code snippet shows the Masked Input editor that updates its value after a user is idle for 1 second (1,000ms).

razor
<DxMaskedInput @bind-Value="@Value" 
           BindValueMode="BindValueMode.OnDelayedInput"
           InputDelay="1000" />

@code {
    string Value { get; set; } = "Test";
}

Run Demo: Masked Input - Bind Value On Input Change

See Also

DxMaskedInput<T> Class

DxMaskedInput<T> Members

DevExpress.Blazor Namespace